mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
Start hooking up input driver.
This commit is contained in:
parent
4b9e46ff06
commit
f5c11071be
@ -16,6 +16,8 @@ extern "C" {
|
|||||||
#define SSNES_API_DECL
|
#define SSNES_API_DECL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define SSNES_API_VERSION 1
|
||||||
|
|
||||||
// Since we don't want to rely on C++ or C99 for a proper boolean type, and make sure return semantics are perfectly clear ... ;)
|
// Since we don't want to rely on C++ or C99 for a proper boolean type, and make sure return semantics are perfectly clear ... ;)
|
||||||
#define SSNES_OK 1
|
#define SSNES_OK 1
|
||||||
#define SSNES_ERROR 0
|
#define SSNES_ERROR 0
|
||||||
@ -70,6 +72,7 @@ typedef struct ssnes_video_info
|
|||||||
// Can be disregarded.
|
// Can be disregarded.
|
||||||
const char *ttf_font;
|
const char *ttf_font;
|
||||||
unsigned ttf_font_size;
|
unsigned ttf_font_size;
|
||||||
|
|
||||||
} ssnes_video_info_t;
|
} ssnes_video_info_t;
|
||||||
|
|
||||||
#define SSNES_AXIS_NEG(x) (((unsigned)(x) << 16) | 0xFFFFU)
|
#define SSNES_AXIS_NEG(x) (((unsigned)(x) << 16) | 0xFFFFU)
|
||||||
@ -156,6 +159,9 @@ typedef struct ssnes_video_driver
|
|||||||
|
|
||||||
// A human-readable identification of the video driver.
|
// A human-readable identification of the video driver.
|
||||||
const char *ident;
|
const char *ident;
|
||||||
|
|
||||||
|
// Needs to be defined to SSNES_API_VERSION. This is used to detect API mismatches.
|
||||||
|
int api_version;
|
||||||
} ssnes_video_driver_t;
|
} ssnes_video_driver_t;
|
||||||
|
|
||||||
SSNES_API_DECL const ssnes_video_driver_t* ssnes_video_init(void);
|
SSNES_API_DECL const ssnes_video_driver_t* ssnes_video_init(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user