Skip to content

Commit

Permalink
Add support for controllers with button triggers rather than axis tri…
Browse files Browse the repository at this point in the history
…ggers (#2461)

Add triggers to controller buttons because old controllers don't use them as an axis
  • Loading branch information
DragonMoffon authored Nov 20, 2024
1 parent 84e8789 commit 4cbe420
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arcade/future/input/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class ControllerButtons(StrEnum):
BOTTOM_FACE = "a"
LEFT_SHOULDER = "leftshoulder"
RIGHT_SHOULDER = "rightshoulder"
LEFT_TRIGGER = "lefttrigger"
RIGHT_TRIGGER = "righttrigger"
START = "start"
BACK = "back"
GUIDE = "guide"
Expand Down Expand Up @@ -101,11 +103,13 @@ class PSControllerButtons(StrEnum):
CROSS = ControllerButtons.BOTTOM_FACE
L1 = ControllerButtons.LEFT_SHOULDER
R1 = ControllerButtons.RIGHT_SHOULDER
L2 = ControllerButtons.LEFT_TRIGGER
R2 = ControllerButtons.RIGHT_TRIGGER
L3 = ControllerButtons.LEFT_STICK
R3 = ControllerButtons.RIGHT_STICK
START = ControllerButtons.START
SELECT = ControllerButtons.BACK
GUIDE = ControllerButtons.GUIDE
LEFT_STICK = ControllerButtons.LEFT_STICK
RIGHT_STICK = ControllerButtons.RIGHT_STICK
DPAD_LEFT = ControllerButtons.DPAD_LEFT
DPAD_RIGHT = ControllerButtons.DPAD_RIGHT
DPAD_UP = ControllerButtons.DPAD_UP
Expand Down

0 comments on commit 4cbe420

Please sign in to comment.