Add pygameControls/globals.py

This commit is contained in:
2025-05-05 13:00:12 +02:00
parent 9954e3c308
commit ae528e516b

36
pygameControls/globals.py Normal file
View File

@@ -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",
}