From e5a1ff1bbdc6e454298560e4e1cbf5337fb9a01e Mon Sep 17 00:00:00 2001 From: Lerking Date: Mon, 5 May 2025 09:07:42 +0200 Subject: [PATCH] Update pygameControls/xbox_series_x_controller.py --- pygameControls/xbox_series_x_controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pygameControls/xbox_series_x_controller.py b/pygameControls/xbox_series_x_controller.py index 0a96842..5da1347 100644 --- a/pygameControls/xbox_series_x_controller.py +++ b/pygameControls/xbox_series_x_controller.py @@ -1,10 +1,11 @@ from pygameControls.controlsbase import ControlsBase class XboxSeriesXController(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)]