Update pygameControls/logitech_f510_controller.py

This commit is contained in:
2025-05-05 09:05:34 +02:00
parent baa3675406
commit 4c4aed6fa8

View File

@@ -25,10 +25,11 @@ class ConnectionType(Enum):
WIRELESS = 2
class LogitechF510Controller(ControlsBase):
def __init__(self, joy):
def __init__(self, joy, connection_type):
self.device = joy
self.instance_id: int = self.device.get_instance_id()
self.name = self.device.get_name()
self.connection_type = connection_type
self.numaxis: int = self.device.get_numaxis()
self.axis: list = []
self.numhats: int = self.device.get_numhats()