Update pygameControls/logitech_dual_action_controller.py
This commit is contained in:
@@ -21,10 +21,11 @@ class InputMode(Enum):
|
|||||||
XInput = 2
|
XInput = 2
|
||||||
|
|
||||||
class LogitechDualActionController(ControlsBase):
|
class LogitechDualActionController(ControlsBase):
|
||||||
def __init__(self, joy):
|
def __init__(self, joy, connection_type):
|
||||||
self.device = joy
|
self.device = joy
|
||||||
self.instance_id: int = self.device.get_instance_id()
|
self.instance_id: int = self.device.get_instance_id()
|
||||||
self.name = self.device.get_name()
|
self.name = self.device.get_name()
|
||||||
|
self.connection_type = connection_type
|
||||||
self.guid = self.device.get_guid()
|
self.guid = self.device.get_guid()
|
||||||
self.powerlevel = self.device.get_power_level()
|
self.powerlevel = self.device.get_power_level()
|
||||||
self.numaxis: int = self.device.get_numaxes()
|
self.numaxis: int = self.device.get_numaxes()
|
||||||
|
Reference in New Issue
Block a user