Update pygameControls/dualsense_edge_controller.py

This commit is contained in:
2025-05-05 09:03:55 +02:00
parent 7d4037a748
commit 7b2641f174

View File

@@ -3,10 +3,11 @@ from pydualsense import *
class DualSenseEdgeController(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)