Skip to content

Commit

Permalink
Add triggers to controller buttons because old controllers don't use …
Browse files Browse the repository at this point in the history
…them as axis
  • Loading branch information
DragonMoffon committed Nov 20, 2024
1 parent 3c4c1e4 commit 0fa8d3f
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 0fa8d3f

Please sign in to comment.