Update pygameControls/dualsense_controller.py

Added connection_type. /JL
This commit is contained in:
2025-05-05 09:03:32 +02:00
parent d26316d273
commit 7d4037a748

View File

@@ -11,10 +11,11 @@ BATTERY_STATE = {
}
class DualSenseController(ControlsBase):
def __init__(self, joy):
def __init__(self, joy, connection_type):
self.device = pydualsense()
self.device.init()
self.name = self.device.device.get_product_string()
self.connection_type = connection_type
self.powerlevel = self.device.battery.Level
self.batterystate = BATTERY_STATE[str(self.device.battery.State)]
self.set_player_id(PlayerID.PLAYER_1)