34 #include "os/copymem.h" 56 BUTTON_MASK_LEFT=(1<<(BUTTON_LEFT-1)),
57 BUTTON_MASK_RIGHT=(1<<(BUTTON_RIGHT-1)),
58 BUTTON_MASK_MIDDLE=(1<<(BUTTON_MIDDLE-1)),
84 JOY_L2 = JOY_BUTTON_6,
85 JOY_R2 = JOY_BUTTON_7,
86 JOY_L3 = JOY_BUTTON_8,
87 JOY_R3 = JOY_BUTTON_9,
88 JOY_SELECT = JOY_BUTTON_10,
89 JOY_START = JOY_BUTTON_11,
90 JOY_DPAD_UP = JOY_BUTTON_12,
91 JOY_DPAD_DOWN = JOY_BUTTON_13,
92 JOY_DPAD_LEFT = JOY_BUTTON_14,
93 JOY_DPAD_RIGHT = JOY_BUTTON_15,
97 JOY_SNES_B = JOY_BUTTON_0,
98 JOY_SNES_A = JOY_BUTTON_1,
99 JOY_SNES_Y = JOY_BUTTON_2,
100 JOY_SNES_X = JOY_BUTTON_3,
102 JOY_SONY_CIRCLE=JOY_SNES_A,
103 JOY_SONY_X=JOY_SNES_B,
104 JOY_SONY_SQUARE=JOY_SNES_Y,
105 JOY_SONY_TRIANGLE=JOY_SNES_X,
107 JOY_SEGA_B=JOY_SNES_A,
108 JOY_SEGA_A=JOY_SNES_B,
109 JOY_SEGA_X=JOY_SNES_Y,
110 JOY_SEGA_Y=JOY_SNES_X,
112 JOY_XBOX_B=JOY_SEGA_B,
113 JOY_XBOX_A=JOY_SEGA_A,
114 JOY_XBOX_X=JOY_SEGA_X,
115 JOY_XBOX_Y=JOY_SEGA_Y,
117 JOY_DS_A = JOY_SNES_A,
118 JOY_DS_B = JOY_SNES_B,
119 JOY_DS_X = JOY_SNES_X,
120 JOY_DS_Y = JOY_SNES_Y,
122 JOY_WII_C = JOY_BUTTON_5,
123 JOY_WII_Z = JOY_BUTTON_6,
125 JOY_WII_MINUS = JOY_BUTTON_9,
126 JOY_WII_PLUS = JOY_BUTTON_10,
140 JOY_ANALOG_0_X = JOY_AXIS_0,
141 JOY_ANALOG_0_Y = JOY_AXIS_1,
143 JOY_ANALOG_1_X = JOY_AXIS_2,
144 JOY_ANALOG_1_Y = JOY_AXIS_3,
146 JOY_ANALOG_2_X = JOY_AXIS_4,
147 JOY_ANALOG_2_Y = JOY_AXIS_5,
149 JOY_ANALOG_L2 = JOY_AXIS_6,
150 JOY_ANALOG_R2 = JOY_AXIS_7,
162 #ifdef APPLE_STYLE_KEYS 180 return ( (shift==rvalue.shift) && (alt==rvalue.alt) && (control==rvalue.control) && (meta==rvalue.meta));
198 uint32_t get_scancode_with_modifiers()
const;
209 int global_x,global_y;
224 int relative_x,relative_y;
225 float speed_x,speed_y;
251 int relative_x,relative_y;
252 float speed_x,speed_y;
293 bool is_pressed()
const;
294 bool is_action(
const String& p_action)
const;
295 bool is_action_pressed(
const String& p_action)
const;
296 bool is_action_released(
const String& p_action)
const;
297 bool is_echo()
const;
298 void set_as_action(
const String& p_action,
bool p_pressed);
302 bool operator==(
const InputEvent &p_event)
const;
Definition: math_2d.h:554