Update pygameControls/dualsense_edge_controller.py
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user