diff --git a/pygameControls/globals.py b/pygameControls/globals.py new file mode 100644 index 0000000..839c9a0 --- /dev/null +++ b/pygameControls/globals.py @@ -0,0 +1,36 @@ +from .enums import ConnectionType, InputType + +CONNECTIONS = { + "046d:c216": ConnectionType.USB, + "046d:c21d": ConnectionType.USB, + "045e:0b12": ConnectionType.USB, + "045e:0b13": ConnectionType.BLUETOOTH, + "045e:0b20": ConnectionType.BLUETOOTH, + "045e:0b21": ConnectionType.BLUETOOTH, + "054c:0ce6": ConnectionType.USB, + "054c:0df2"; ConnectionType.BLUETOOTH, + +} + +INPUTS = { + "046d:c216": InputType.DirectInput, + "046d:c21d": InputType.XInput, + "045e:0b12": InputType.XInput, + "045e:0b13": InputType.XInput, + "045e:0b20": InputType.XInput, + "045e:0b21": InputType.XInput, + "054c:0ce6": InputType.DirectInput, + "054c:0df2": InputType.DirectInput, +} + +VID_PID = { + "046d:c216": "Logitech Gamepad F310", + "046d:c21d": "Microsoft X-Box 360 pad", + "046d:c21d": "Logitech Dual Action", + "045e:0b12": "Xbox Series X Controller", + "045e:0b13": "Xbox Series X Controller", + "045e:0b20": "Xbox Series X Controller", + "045e:0b21": "Xbox Series X Controller", + "054c:0ce6": "Dualsense Controller", + "054c:0df2": "Dualsense Controller", +} \ No newline at end of file