mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 00:35:21 +00:00
Cleanup typedefs.
This commit is contained in:
parent
6e1d48a625
commit
f548ebb1a2
14
driver.h
14
driver.h
@ -67,16 +67,18 @@ enum
|
|||||||
SSNES_BIND_LIST_END
|
SSNES_BIND_LIST_END
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __CELLOS_LV2__
|
||||||
|
typedef uint64_t ssnes_joykey_t;
|
||||||
|
#else
|
||||||
|
typedef uint16_t ssnes_joykey_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
struct snes_keybind
|
struct snes_keybind
|
||||||
{
|
{
|
||||||
bool valid;
|
bool valid;
|
||||||
int id;
|
int id;
|
||||||
enum ssnes_key key;
|
enum ssnes_key key;
|
||||||
#ifdef __CELLOS_LV2__
|
ssnes_joykey_t joykey;
|
||||||
uint64_t joykey;
|
|
||||||
#else
|
|
||||||
uint16_t joykey;
|
|
||||||
#endif
|
|
||||||
uint32_t joyaxis;
|
uint32_t joyaxis;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -114,7 +116,7 @@ typedef struct audio_driver
|
|||||||
#define AXIS_NEG_GET(x) (((uint32_t)(x) >> 16) & UINT16_C(0xFFFF))
|
#define AXIS_NEG_GET(x) (((uint32_t)(x) >> 16) & UINT16_C(0xFFFF))
|
||||||
#define AXIS_POS_GET(x) ((uint32_t)(x) & UINT16_C(0xFFFF))
|
#define AXIS_POS_GET(x) ((uint32_t)(x) & UINT16_C(0xFFFF))
|
||||||
|
|
||||||
#define NO_BTN UINT16_C(0xFFFF) // I hope no joypad will ever have this many buttons ... ;)
|
#define NO_BTN ((ssnes_joykey_t)-1) // I hope no joypad will ever have this many buttons ... ;)
|
||||||
|
|
||||||
#define HAT_UP_MASK (1 << 15)
|
#define HAT_UP_MASK (1 << 15)
|
||||||
#define HAT_DOWN_MASK (1 << 14)
|
#define HAT_DOWN_MASK (1 << 14)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user