Skip to content

Commit 4cbe420

Browse files
authored
Add support for controllers with button triggers rather than axis triggers (#2461)
Add triggers to controller buttons because old controllers don't use them as an axis
1 parent 84e8789 commit 4cbe420

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

arcade/future/input/inputs.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ class ControllerButtons(StrEnum):
6565
BOTTOM_FACE = "a"
6666
LEFT_SHOULDER = "leftshoulder"
6767
RIGHT_SHOULDER = "rightshoulder"
68+
LEFT_TRIGGER = "lefttrigger"
69+
RIGHT_TRIGGER = "righttrigger"
6870
START = "start"
6971
BACK = "back"
7072
GUIDE = "guide"
@@ -101,11 +103,13 @@ class PSControllerButtons(StrEnum):
101103
CROSS = ControllerButtons.BOTTOM_FACE
102104
L1 = ControllerButtons.LEFT_SHOULDER
103105
R1 = ControllerButtons.RIGHT_SHOULDER
106+
L2 = ControllerButtons.LEFT_TRIGGER
107+
R2 = ControllerButtons.RIGHT_TRIGGER
108+
L3 = ControllerButtons.LEFT_STICK
109+
R3 = ControllerButtons.RIGHT_STICK
104110
START = ControllerButtons.START
105111
SELECT = ControllerButtons.BACK
106112
GUIDE = ControllerButtons.GUIDE
107-
LEFT_STICK = ControllerButtons.LEFT_STICK
108-
RIGHT_STICK = ControllerButtons.RIGHT_STICK
109113
DPAD_LEFT = ControllerButtons.DPAD_LEFT
110114
DPAD_RIGHT = ControllerButtons.DPAD_RIGHT
111115
DPAD_UP = ControllerButtons.DPAD_UP

0 commit comments

Comments
 (0)