diff --git a/pygameControls/xbox_360_controller.py b/pygameControls/xbox_360_controller.py index de72303..ce79160 100644 --- a/pygameControls/xbox_360_controller.py +++ b/pygameControls/xbox_360_controller.py @@ -1,5 +1,5 @@ from pygameControls.controlsbase import ControlsBase -from enums import ConnectionType +from enums import ConnectionType, InputType import pygame class Xbox360Controller(ControlsBase): @@ -9,6 +9,7 @@ class Xbox360Controller(ControlsBase): self.name = self.device.get_name() self.guid = self.device.get_guid() self.connection_type = ConnectionType(connection_type.values()) + self.input_type = InputType.XInput self.numaxis: int = self.device.get_numaxes() self.axis: list = [self.device.get_axis(a) for a in range(self.numaxis)] self.numhats: int = self.device.get_numhats()