72 lines
2.2 KiB
Python
72 lines
2.2 KiB
Python
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 Wireless Controller",
|
|
"054c:0df2": "DualSense Wireless Controller",
|
|
}
|
|
|
|
GAMEPADS = {
|
|
"Sony DualSense (PS5)": {
|
|
[
|
|
"vidpid": "054c:0ce6",
|
|
"connection": ConnectionType.USB,
|
|
"input": InputType.DirectInput,
|
|
"name": ["DualSense Wireless Controller"],
|
|
"class": "DualSenseController"
|
|
],
|
|
[
|
|
"vidpid": "054c:0df2",
|
|
"connection": ConnectionType.BLUETOOTH,
|
|
"input": InputType.DirectInput,
|
|
"name" ["DualSense Wireless Controller"],
|
|
"class": "DualSenseController"
|
|
]
|
|
},
|
|
"Sony DualSense Edge (PS5)": {
|
|
[
|
|
"vidhid": "054c:0dfc",
|
|
"connection": ConnectionType.USB,
|
|
"input": InputType.DirectInput,
|
|
"name" ["DualSense Edge Wireless Controller"],
|
|
"class": "DualSenseEdgeController"
|
|
],
|
|
[
|
|
"vidhid": "054c:0dfc",
|
|
"connection": ConnectionType.BLUETOOTH,
|
|
"input": InputType.DirectInput,
|
|
"name": ["DualSense Edge Wireless Controller"],
|
|
"class": "DualSenseEdgeController"
|
|
]
|
|
},
|
|
""
|
|
} |