From 74f2665a2fd5c8503fdec70367d9880c7b6c7af1 Mon Sep 17 00:00:00 2001 From: Lerking Date: Mon, 5 May 2025 11:29:44 +0200 Subject: [PATCH] Update pygameControls/xbox_360_controller.py --- pygameControls/xbox_360_controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()