summaryrefslogtreecommitdiff
path: root/core/os
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-03-24 22:53:16 +0100
committerGitHub <noreply@github.com>2017-03-24 22:53:16 +0100
commit5cad9147f9b1f96ba0fdc84f0a6112befdfdfc92 (patch)
tree753e808402c6b11a2080a98112708147db152015 /core/os
parent60a9debb99ecb538ab91d76d80ab6f6c22cf4d5f (diff)
parent0d8f5660f66d9952072fa62b88f620f7ea839d51 (diff)
Merge pull request #8133 from Hinsbart/joy_constants
Input: Refactor JOY_* constants.
Diffstat (limited to 'core/os')
-rw-r--r--core/os/input_event.h47
1 files changed, 16 insertions, 31 deletions
diff --git a/core/os/input_event.h b/core/os/input_event.h
index fd3f8c4cec..17b9f8abc1 100644
--- a/core/os/input_event.h
+++ b/core/os/input_event.h
@@ -89,32 +89,20 @@ enum {
JOY_DPAD_LEFT = JOY_BUTTON_14,
JOY_DPAD_RIGHT = JOY_BUTTON_15,
- // a little history about game controllers (who copied who)
+ JOY_SONY_CIRCLE = JOY_BUTTON_1,
+ JOY_SONY_X = JOY_BUTTON_0,
+ JOY_SONY_SQUARE = JOY_BUTTON_2,
+ JOY_SONY_TRIANGLE = JOY_BUTTON_3,
- JOY_SNES_B = JOY_BUTTON_0,
- JOY_SNES_A = JOY_BUTTON_1,
- JOY_SNES_Y = JOY_BUTTON_2,
- JOY_SNES_X = JOY_BUTTON_3,
+ JOY_XBOX_A = JOY_BUTTON_0,
+ JOY_XBOX_B = JOY_BUTTON_1,
+ JOY_XBOX_X = JOY_BUTTON_2,
+ JOY_XBOX_Y = JOY_BUTTON_3,
- JOY_SONY_CIRCLE = JOY_SNES_A,
- JOY_SONY_X = JOY_SNES_B,
- JOY_SONY_SQUARE = JOY_SNES_Y,
- JOY_SONY_TRIANGLE = JOY_SNES_X,
-
- JOY_SEGA_B = JOY_SNES_A,
- JOY_SEGA_A = JOY_SNES_B,
- JOY_SEGA_X = JOY_SNES_Y,
- JOY_SEGA_Y = JOY_SNES_X,
-
- JOY_XBOX_B = JOY_SEGA_B,
- JOY_XBOX_A = JOY_SEGA_A,
- JOY_XBOX_X = JOY_SEGA_X,
- JOY_XBOX_Y = JOY_SEGA_Y,
-
- JOY_DS_A = JOY_SNES_A,
- JOY_DS_B = JOY_SNES_B,
- JOY_DS_X = JOY_SNES_X,
- JOY_DS_Y = JOY_SNES_Y,
+ JOY_DS_A = JOY_BUTTON_1,
+ JOY_DS_B = JOY_BUTTON_0,
+ JOY_DS_X = JOY_BUTTON_3,
+ JOY_DS_Y = JOY_BUTTON_2,
JOY_WII_C = JOY_BUTTON_5,
JOY_WII_Z = JOY_BUTTON_6,
@@ -134,14 +122,11 @@ enum {
JOY_AXIS_7 = 7,
JOY_AXIS_MAX = 8,
- JOY_ANALOG_0_X = JOY_AXIS_0,
- JOY_ANALOG_0_Y = JOY_AXIS_1,
-
- JOY_ANALOG_1_X = JOY_AXIS_2,
- JOY_ANALOG_1_Y = JOY_AXIS_3,
+ JOY_ANALOG_LX = JOY_AXIS_0,
+ JOY_ANALOG_LY = JOY_AXIS_1,
- JOY_ANALOG_2_X = JOY_AXIS_4,
- JOY_ANALOG_2_Y = JOY_AXIS_5,
+ JOY_ANALOG_RX = JOY_AXIS_2,
+ JOY_ANALOG_RY = JOY_AXIS_3,
JOY_ANALOG_L2 = JOY_AXIS_6,
JOY_ANALOG_R2 = JOY_AXIS_7,