@@ -76,6 +76,42 @@ class ControllerButtons(StrEnum):
7676 DPAD_DOWN = "dpdown"
7777
7878
79+ class XBoxControllerButtons (StrEnum ):
80+ Y = ControllerButtons .TOP_FACE
81+ B = ControllerButtons .RIGHT_FACE
82+ X = ControllerButtons .LEFT_FACE
83+ A = ControllerButtons .BOTTOM_FACE
84+ LEFT_BUMPER = ControllerButtons .LEFT_SHOULDER
85+ RIGHT_BUMPER = ControllerButtons .RIGHT_SHOULDER
86+ START = ControllerButtons .START
87+ SELECT = ControllerButtons .BACK
88+ GUIDE = ControllerButtons .GUIDE
89+ LEFT_STICK = ControllerButtons .LEFT_STICK
90+ RIGHT_STICK = ControllerButtons .RIGHT_STICK
91+ DPAD_LEFT = ControllerButtons .DPAD_LEFT
92+ DPAD_RIGHT = ControllerButtons .DPAD_RIGHT
93+ DPAD_UP = ControllerButtons .DPAD_UP
94+ DPAD_DOWN = ControllerButtons .DPAD_DOWN
95+
96+
97+ class PSControllerButtons (StrEnum ):
98+ TRIANGLE = ControllerButtons .TOP_FACE
99+ CIRCLE = ControllerButtons .RIGHT_FACE
100+ SQUARE = ControllerButtons .LEFT_FACE
101+ CROSS = ControllerButtons .BOTTOM_FACE
102+ L1 = ControllerButtons .LEFT_SHOULDER
103+ R1 = ControllerButtons .RIGHT_SHOULDER
104+ START = ControllerButtons .START
105+ SELECT = ControllerButtons .BACK
106+ GUIDE = ControllerButtons .GUIDE
107+ LEFT_STICK = ControllerButtons .LEFT_STICK
108+ RIGHT_STICK = ControllerButtons .RIGHT_STICK
109+ DPAD_LEFT = ControllerButtons .DPAD_LEFT
110+ DPAD_RIGHT = ControllerButtons .DPAD_RIGHT
111+ DPAD_UP = ControllerButtons .DPAD_UP
112+ DPAD_DOWN = ControllerButtons .DPAD_DOWN
113+
114+
79115class Keys (InputEnum ):
80116 # Key modifiers
81117 # Done in powers of two, so you can do a bit-wise 'and' to detect
0 commit comments