17 #ifndef __INPUT_DEFINES__H 18 #define __INPUT_DEFINES__H 29 #define MAX_INPUT_DEVICES 16 31 #define RARCH_MAX_KEYS 137 33 #define RARCH_FIRST_CUSTOM_BIND 16 34 #define RARCH_FIRST_LIGHTGUN_BIND RARCH_ANALOG_BIND_LIST_END 35 #define RARCH_FIRST_MISC_CUSTOM_BIND RARCH_LIGHTGUN_BIND_LIST_END 36 #define RARCH_FIRST_META_KEY RARCH_CUSTOM_BIND_LIST_END 38 #define RARCH_UNMAPPED 1024 132 #define RARCH_DEVICE_MOUSE_SCREEN (RETRO_DEVICE_MOUSE | 0x10000) 139 #define RARCH_DEVICE_POINTER_SCREEN (RETRO_DEVICE_POINTER | 0x10000) 141 #define RARCH_DEVICE_ID_POINTER_BACK (RETRO_DEVICE_ID_POINTER_PRESSED | 0x10000) 148 #define AXIS_NEG(x) (((uint32_t)(x) << 16) | 0xFFFFU) 149 #define AXIS_POS(x) ((uint32_t)(x) | 0xFFFF0000UL) 150 #define AXIS_NONE 0xFFFFFFFFUL 151 #define AXIS_DIR_NONE 0xFFFFU 153 #define AXIS_NEG_GET(x) (((uint32_t)(x) >> 16) & 0xFFFFU) 154 #define AXIS_POS_GET(x) ((uint32_t)(x) & 0xFFFFU) 156 #define NO_BTN 0xFFFFU 158 #define HAT_UP_SHIFT 15 159 #define HAT_DOWN_SHIFT 14 160 #define HAT_LEFT_SHIFT 13 161 #define HAT_RIGHT_SHIFT 12 162 #define HAT_UP_MASK (1 << HAT_UP_SHIFT) 163 #define HAT_DOWN_MASK (1 << HAT_DOWN_SHIFT) 164 #define HAT_LEFT_MASK (1 << HAT_LEFT_SHIFT) 165 #define HAT_RIGHT_MASK (1 << HAT_RIGHT_SHIFT) 166 #define HAT_MAP(x, hat) ((x & ((1 << 12) - 1)) | hat) 168 #define HAT_MASK (HAT_UP_MASK | HAT_DOWN_MASK | HAT_LEFT_MASK | HAT_RIGHT_MASK) 169 #define GET_HAT_DIR(x) (x & HAT_MASK) 170 #define GET_HAT(x) (x & (~HAT_MASK)) #define RARCH_FIRST_META_KEY
Definition: input_defines.h:36
Definition: input_defines.h:107
Definition: input_defines.h:102
Definition: input_defines.h:96
#define RARCH_FIRST_CUSTOM_BIND
Definition: input_defines.h:33
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
Definition: input_defines.h:79
Definition: input_defines.h:91
Definition: input_defines.h:104
Definition: input_defines.h:54
Definition: input_defines.h:103
Definition: input_defines.h:119
Definition: input_defines.h:99
Definition: input_defines.h:127
Definition: input_defines.h:50
Definition: input_defines.h:98
Definition: input_defines.h:63
Definition: input_defines.h:111
Definition: input_defines.h:81
Definition: input_defines.h:85
Definition: input_defines.h:62
Definition: input_defines.h:105
Definition: input_defines.h:59
Definition: input_defines.h:58
Definition: input_defines.h:66
Definition: input_defines.h:80
Definition: input_defines.h:92
Definition: input_defines.h:64
Definition: input_defines.h:95
Definition: input_defines.h:57
Definition: input_defines.h:125
Definition: input_defines.h:116
Definition: input_defines.h:93
Definition: input_defines.h:53
Definition: input_defines.h:49
Definition: input_defines.h:94
Definition: input_defines.h:90
Definition: input_defines.h:60
Definition: input_defines.h:88
Definition: input_defines.h:46
Definition: input_defines.h:101
Definition: input_defines.h:113
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
Definition: input_defines.h:48
Definition: input_defines.h:77
Definition: input_defines.h:115
Definition: input_defines.h:71
Definition: input_defines.h:118
Definition: input_defines.h:87
Definition: input_defines.h:68
Definition: input_defines.h:82
Definition: input_defines.h:83
analog_dpad_mode
Definition: input_defines.h:122
Definition: input_defines.h:78
Definition: input_defines.h:47
Definition: input_defines.h:51
Definition: input_defines.h:126
Definition: input_defines.h:108
Definition: input_defines.h:124
#define RARCH_FIRST_LIGHTGUN_BIND
Definition: input_defines.h:34
Definition: input_defines.h:109
Definition: input_defines.h:100
Definition: input_defines.h:106
Definition: input_defines.h:67
Definition: input_defines.h:61
Definition: input_defines.h:97
Definition: input_defines.h:84
#define RARCH_FIRST_MISC_CUSTOM_BIND
Definition: input_defines.h:35
Definition: input_defines.h:86
Definition: input_defines.h:52
Definition: input_defines.h:110
Definition: input_defines.h:73
Definition: input_defines.h:89
Definition: input_defines.h:65