diff --git a/pygameControls/generic_controller.py b/pygameControls/generic_controller.py index ebdfc9e..76fe57b 100644 --- a/pygameControls/generic_controller.py +++ b/pygameControls/generic_controller.py @@ -2,10 +2,11 @@ import pygame from pygameControls.controlsbase import ControlsBase class GenericController(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.guid = self.device.get_guid() self.numaxis: int = self.device.get_numaxes() self.axis: list = [self.device.get_axis(a) for a in range(self.numaxis)]