Update pygameControls/logitech_f710_controller.py
This commit is contained in:
@@ -25,10 +25,11 @@ class ConnectionType(Enum):
|
|||||||
WIRELESS = 2
|
WIRELESS = 2
|
||||||
|
|
||||||
class LogitechF710Controller(ControlsBase):
|
class LogitechF710Controller(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.numaxis: int = self.device.get_numaxis()
|
self.numaxis: int = self.device.get_numaxis()
|
||||||
self.axis: list = []
|
self.axis: list = []
|
||||||
self.numhats: int = self.device.get_numhats()
|
self.numhats: int = self.device.get_numhats()
|
||||||
|
Reference in New Issue
Block a user