Update game controller enums.

This commit is contained in:
Marcel Admiraal
2020-04-23 13:01:36 +01:00
parent 1176e078b9
commit e7fee711b3
17 changed files with 510 additions and 593 deletions

View File

@@ -943,212 +943,185 @@
<constant name="BUTTON_MASK_XBUTTON2" value="256" enum="ButtonList">
Extra mouse button 2 mask.
</constant>
<constant name="JOY_BUTTON_0" value="0" enum="JoystickList">
Gamepad button 0.
<constant name="JOY_INVALID_BUTTON" value="-1" enum="JoyButtonList">
An invalid game controller button.
</constant>
<constant name="JOY_BUTTON_1" value="1" enum="JoystickList">
Gamepad button 1.
<constant name="JOY_BUTTON_A" value="0" enum="JoyButtonList">
Game controller SDL button A.
</constant>
<constant name="JOY_BUTTON_2" value="2" enum="JoystickList">
Gamepad button 2.
<constant name="JOY_BUTTON_B" value="1" enum="JoyButtonList">
Game controller SDL button B.
</constant>
<constant name="JOY_BUTTON_3" value="3" enum="JoystickList">
Gamepad button 3.
<constant name="JOY_BUTTON_X" value="2" enum="JoyButtonList">
Game controller SDL button X.
</constant>
<constant name="JOY_BUTTON_4" value="4" enum="JoystickList">
Gamepad button 4.
<constant name="JOY_BUTTON_Y" value="3" enum="JoyButtonList">
Game controller SDL button Y.
</constant>
<constant name="JOY_BUTTON_5" value="5" enum="JoystickList">
Gamepad button 5.
<constant name="JOY_BUTTON_BACK" value="4" enum="JoyButtonList">
Game controller SDL back button.
</constant>
<constant name="JOY_BUTTON_6" value="6" enum="JoystickList">
Gamepad button 6.
<constant name="JOY_BUTTON_GUIDE" value="5" enum="JoyButtonList">
Game controller SDL guide button.
</constant>
<constant name="JOY_BUTTON_7" value="7" enum="JoystickList">
Gamepad button 7.
<constant name="JOY_BUTTON_START" value="6" enum="JoyButtonList">
Game controller SDL start button.
</constant>
<constant name="JOY_BUTTON_8" value="8" enum="JoystickList">
Gamepad button 8.
<constant name="JOY_BUTTON_LEFT_STICK" value="7" enum="JoyButtonList">
Game controller SDL left stick button.
</constant>
<constant name="JOY_BUTTON_9" value="9" enum="JoystickList">
Gamepad button 9.
<constant name="JOY_BUTTON_RIGHT_STICK" value="8" enum="JoyButtonList">
Game controller SDL right stick button.
</constant>
<constant name="JOY_BUTTON_10" value="10" enum="JoystickList">
Gamepad button 10.
<constant name="JOY_BUTTON_LEFT_SHOULDER" value="9" enum="JoyButtonList">
Game controller SDL left shoulder button.
</constant>
<constant name="JOY_BUTTON_11" value="11" enum="JoystickList">
Gamepad button 11.
<constant name="JOY_BUTTON_RIGHT_SHOULDER" value="10" enum="JoyButtonList">
Game controller SDL right shoulder button.
</constant>
<constant name="JOY_BUTTON_12" value="12" enum="JoystickList">
Gamepad button 12.
<constant name="JOY_BUTTON_DPAD_UP" value="11" enum="JoyButtonList">
Game controller SDL D-pad up button.
</constant>
<constant name="JOY_BUTTON_13" value="13" enum="JoystickList">
Gamepad button 13.
<constant name="JOY_BUTTON_DPAD_DOWN" value="12" enum="JoyButtonList">
Game controller SDL D-pad down button.
</constant>
<constant name="JOY_BUTTON_14" value="14" enum="JoystickList">
Gamepad button 14.
<constant name="JOY_BUTTON_DPAD_LEFT" value="13" enum="JoyButtonList">
Game controller SDL D-pad left button.
</constant>
<constant name="JOY_BUTTON_15" value="15" enum="JoystickList">
Gamepad button 15.
<constant name="JOY_BUTTON_DPAD_RIGHT" value="14" enum="JoyButtonList">
Game controller SDL D-pad right button.
</constant>
<constant name="JOY_BUTTON_MAX" value="16" enum="JoystickList">
Represents the maximum number of joystick buttons supported.
<constant name="JOY_SDL_BUTTONS" value="15" enum="JoyButtonList">
The number of SDL game controller buttons.
</constant>
<constant name="JOY_SONY_CIRCLE" value="1" enum="JoystickList">
DualShock circle button.
<constant name="JOY_SONY_X" value="0" enum="JoyButtonList">
Sony DualShock controller X button maps to SDL button A.
</constant>
<constant name="JOY_SONY_X" value="0" enum="JoystickList">
DualShock X button.
<constant name="JOY_SONY_CROSS" value="0" enum="JoyButtonList">
Sony DualShock controller cross button maps to SDL button A.
</constant>
<constant name="JOY_SONY_SQUARE" value="2" enum="JoystickList">
DualShock square button.
<constant name="JOY_SONY_CIRCLE" value="1" enum="JoyButtonList">
Sony DualShock controller circle button maps to SDL button B.
</constant>
<constant name="JOY_SONY_TRIANGLE" value="3" enum="JoystickList">
DualShock triangle button.
<constant name="JOY_SONY_SQUARE" value="2" enum="JoyButtonList">
Sony DualShock controller square button maps to SDL button X.
</constant>
<constant name="JOY_XBOX_B" value="1" enum="JoystickList">
Xbox controller B button.
<constant name="JOY_SONY_TRIANGLE" value="3" enum="JoyButtonList">
Sony DualShock controller triangle button maps to SDL button Y.
</constant>
<constant name="JOY_XBOX_A" value="0" enum="JoystickList">
Xbox controller A button.
<constant name="JOY_SONY_SELECT" value="4" enum="JoyButtonList">
Sony DualShock controller select button maps to SDL back button.
</constant>
<constant name="JOY_XBOX_X" value="2" enum="JoystickList">
Xbox controller X button.
<constant name="JOY_SONY_START" value="6" enum="JoyButtonList">
Sony DualShock controller start button maps to SDL start button.
</constant>
<constant name="JOY_XBOX_Y" value="3" enum="JoystickList">
Xbox controller Y button.
<constant name="JOY_SONY_PS" value="5" enum="JoyButtonList">
Sony DualShock controller PS button maps to SDL guide button.
</constant>
<constant name="JOY_DS_A" value="1" enum="JoystickList">
Nintendo controller A button.
<constant name="JOY_SONY_L1" value="9" enum="JoyButtonList">
Sony DualShock controller L1 button maps to SDL left shoulder button.
</constant>
<constant name="JOY_DS_B" value="0" enum="JoystickList">
Nintendo controller B button.
<constant name="JOY_SONY_R1" value="10" enum="JoyButtonList">
Sony DualShock controller R1 button maps to SDL right shoulder button.
</constant>
<constant name="JOY_DS_X" value="3" enum="JoystickList">
Nintendo controller X button.
<constant name="JOY_SONY_L3" value="7" enum="JoyButtonList">
Sony DualShock controller L3 button maps to SDL left stick button.
</constant>
<constant name="JOY_DS_Y" value="2" enum="JoystickList">
Nintendo controller Y button.
<constant name="JOY_SONY_R3" value="8" enum="JoyButtonList">
Sony DualShock controller R3 button maps to SDL right stick button.
</constant>
<constant name="JOY_VR_GRIP" value="2" enum="JoystickList">
Grip (side) buttons on a VR controller.
<constant name="JOY_XBOX_A" value="0" enum="JoyButtonList">
Xbox game controller A button maps to SDL button A.
</constant>
<constant name="JOY_VR_PAD" value="14" enum="JoystickList">
Push down on the touchpad or main joystick on a VR controller.
<constant name="JOY_XBOX_B" value="1" enum="JoyButtonList">
Xbox game controller B button maps to SDL button B.
</constant>
<constant name="JOY_VR_TRIGGER" value="15" enum="JoystickList">
Trigger on a VR controller.
<constant name="JOY_XBOX_X" value="2" enum="JoyButtonList">
Xbox game controller X button maps to SDL button X.
</constant>
<constant name="JOY_OCULUS_AX" value="7" enum="JoystickList">
A button on the right Oculus Touch controller, X button on the left controller (also when used in OpenVR).
<constant name="JOY_XBOX_Y" value="3" enum="JoyButtonList">
Xbox game controller Y button maps to SDL button Y.
</constant>
<constant name="JOY_OCULUS_BY" value="1" enum="JoystickList">
B button on the right Oculus Touch controller, Y button on the left controller (also when used in OpenVR).
<constant name="JOY_XBOX_BACK" value="4" enum="JoyButtonList">
Xbox game controller back button maps to SDL back button.
</constant>
<constant name="JOY_OCULUS_MENU" value="3" enum="JoystickList">
Menu button on either Oculus Touch controller.
<constant name="JOY_XBOX_START" value="6" enum="JoyButtonList">
Xbox game controller start button maps to SDL start button.
</constant>
<constant name="JOY_OPENVR_MENU" value="1" enum="JoystickList">
Menu button in OpenVR (Except when Oculus Touch controllers are used).
<constant name="JOY_XBOX_HOME" value="5" enum="JoyButtonList">
Xbox game controller home button maps to SDL guide button.
</constant>
<constant name="JOY_SELECT" value="10" enum="JoystickList">
Gamepad button Select.
<constant name="JOY_XBOX_LS" value="7" enum="JoyButtonList">
Xbox game controller left stick button maps to SDL left stick button.
</constant>
<constant name="JOY_START" value="11" enum="JoystickList">
Gamepad button Start.
<constant name="JOY_XBOX_RS" value="8" enum="JoyButtonList">
Xbox game controller right stick button maps to SDL right stick button.
</constant>
<constant name="JOY_DPAD_UP" value="12" enum="JoystickList">
Gamepad DPad up.
<constant name="JOY_XBOX_LB" value="9" enum="JoyButtonList">
Xbox game controller left bumper button maps to SDL left shoulder button.
</constant>
<constant name="JOY_DPAD_DOWN" value="13" enum="JoystickList">
Gamepad DPad down.
<constant name="JOY_XBOX_RB" value="10" enum="JoyButtonList">
Xbox game controller right bumper button maps to SDL right shoulder button.
</constant>
<constant name="JOY_DPAD_LEFT" value="14" enum="JoystickList">
Gamepad DPad left.
<constant name="JOY_BUTTON_MAX" value="36" enum="JoyAxisList">
The maximum number of game controller buttons.
</constant>
<constant name="JOY_DPAD_RIGHT" value="15" enum="JoystickList">
Gamepad DPad right.
<constant name="JOY_INVALID_BUTTON" value="-1" enum="JoyButtonList">
An invalid game controller axis.
</constant>
<constant name="JOY_L" value="4" enum="JoystickList">
Gamepad left Shoulder button.
<constant name="JOY_AXIS_LEFT_X" value="0" enum="JoyAxisList">
Game controller left joystick x-axis.
</constant>
<constant name="JOY_L2" value="6" enum="JoystickList">
Gamepad left trigger.
<constant name="JOY_AXIS_LEFT_Y" value="1" enum="JoyAxisList">
Game controller left joystick y-axis.
</constant>
<constant name="JOY_L3" value="8" enum="JoystickList">
Gamepad left stick click.
<constant name="JOY_AXIS_RIGHT_X" value="2" enum="JoyAxisList">
Game controller right joystick x-axis.
</constant>
<constant name="JOY_R" value="5" enum="JoystickList">
Gamepad right Shoulder button.
<constant name="JOY_AXIS_RIGHT_Y" value="3" enum="JoyAxisList">
Game controller right joystick y-axis.
</constant>
<constant name="JOY_R2" value="7" enum="JoystickList">
Gamepad right trigger.
<constant name="JOY_AXIS_TRIGGER_LEFT" value="4" enum="JoyAxisList">
Game controller left trigger axis.
</constant>
<constant name="JOY_R3" value="9" enum="JoystickList">
Gamepad right stick click.
<constant name="JOY_AXIS_TRIGGER_RIGHT" value="5" enum="JoyAxisList">
Game controller right trigger axis.
</constant>
<constant name="JOY_AXIS_0" value="0" enum="JoystickList">
Gamepad left stick horizontal axis.
<constant name="JOY_SDL_AXES" value="6" enum="JoyAxisList">
The number of SDL game controller axes.
</constant>
<constant name="JOY_AXIS_1" value="1" enum="JoystickList">
Gamepad left stick vertical axis.
<constant name="JOY_AXIS_0_X" value="0" enum="JoyAxisList">
Game controller joystick 0 x-axis.
</constant>
<constant name="JOY_AXIS_2" value="2" enum="JoystickList">
Gamepad right stick horizontal axis.
<constant name="JOY_AXIS_0_Y" value="1" enum="JoyAxisList">
Game controller joystick 0 y-axis.
</constant>
<constant name="JOY_AXIS_3" value="3" enum="JoystickList">
Gamepad right stick vertical axis.
<constant name="JOY_AXIS_1_X" value="2" enum="JoyAxisList">
Game controller joystick 1 x-axis.
</constant>
<constant name="JOY_AXIS_4" value="4" enum="JoystickList">
Generic gamepad axis 4.
<constant name="JOY_AXIS_1_Y" value="3" enum="JoyAxisList">
Game controller joystick 1 y-axis.
</constant>
<constant name="JOY_AXIS_5" value="5" enum="JoystickList">
Generic gamepad axis 5.
<constant name="JOY_AXIS_2_X" value="4" enum="JoyAxisList">
Game controller joystick 2 x-axis.
</constant>
<constant name="JOY_AXIS_6" value="6" enum="JoystickList">
Gamepad left trigger analog axis.
<constant name="JOY_AXIS_2_Y" value="5" enum="JoyAxisList">
Game controller joystick 2 y-axis.
</constant>
<constant name="JOY_AXIS_7" value="7" enum="JoystickList">
Gamepad right trigger analog axis.
<constant name="JOY_AXIS_3_X" value="6" enum="JoyAxisList">
Game controller joystick 3 x-axis.
</constant>
<constant name="JOY_AXIS_8" value="8" enum="JoystickList">
Generic gamepad axis 8.
<constant name="JOY_AXIS_3_Y" value="7" enum="JoyAxisList">
Game controller joystick 3 y-axis.
</constant>
<constant name="JOY_AXIS_9" value="9" enum="JoystickList">
Generic gamepad axis 9.
<constant name="JOY_AXIS_4_X" value="8" enum="JoyAxisList">
Game controller joystick 4 x-axis.
</constant>
<constant name="JOY_AXIS_MAX" value="10" enum="JoystickList">
Represents the maximum number of joystick axes supported.
<constant name="JOY_AXIS_4_Y" value="9" enum="JoyAxisList">
Game controller joystick 4 y-axis.
</constant>
<constant name="JOY_ANALOG_LX" value="0" enum="JoystickList">
Gamepad left stick horizontal axis.
</constant>
<constant name="JOY_ANALOG_LY" value="1" enum="JoystickList">
Gamepad left stick vertical axis.
</constant>
<constant name="JOY_ANALOG_RX" value="2" enum="JoystickList">
Gamepad right stick horizontal axis.
</constant>
<constant name="JOY_ANALOG_RY" value="3" enum="JoystickList">
Gamepad right stick vertical axis.
</constant>
<constant name="JOY_ANALOG_L2" value="6" enum="JoystickList">
Gamepad left analog trigger.
</constant>
<constant name="JOY_ANALOG_R2" value="7" enum="JoystickList">
Gamepad right analog trigger.
</constant>
<constant name="JOY_VR_ANALOG_TRIGGER" value="2" enum="JoystickList">
VR Controller analog trigger.
</constant>
<constant name="JOY_VR_ANALOG_GRIP" value="4" enum="JoystickList">
VR Controller analog grip (side buttons).
</constant>
<constant name="JOY_OPENVR_TOUCHPADX" value="0" enum="JoystickList">
OpenVR touchpad X axis (Joystick axis on Oculus Touch and Windows MR controllers).
</constant>
<constant name="JOY_OPENVR_TOUCHPADY" value="1" enum="JoystickList">
OpenVR touchpad Y axis (Joystick axis on Oculus Touch and Windows MR controllers).
<constant name="JOY_AXIS_MAX" value="10" enum="JoyAxisList">
The maximum number of game controller axes.
</constant>
<constant name="MIDI_MESSAGE_NOTE_OFF" value="8" enum="MidiMessageList">
MIDI note OFF message.