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