diff --git a/src/assets/joystick-profiles.ts b/src/assets/joystick-profiles.ts index 318d66519..b5f88c67c 100644 --- a/src/assets/joystick-profiles.ts +++ b/src/assets/joystick-profiles.ts @@ -87,6 +87,11 @@ export const availableGamepadToCockpitMaps: { [key in JoystickModel]: GamepadToC axes: [0, 1, 2, 3], buttons: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], }, + [JoystickModel.XboxController_360]: { + name: JoystickModel.XboxController_360, + axes: [0, 1, 2, 3], + buttons: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], + }, [JoystickModel.Unknown]: { name: 'Standard gamepad', axes: [0, 1, 2, 3, 4, 5, 6, 7], diff --git a/src/libs/joystick/manager.ts b/src/libs/joystick/manager.ts index e0dc5133f..711eca3e2 100644 --- a/src/libs/joystick/manager.ts +++ b/src/libs/joystick/manager.ts @@ -21,6 +21,7 @@ export enum JoystickModel { XboxOneS_Bluetooth = 'Xbox One S (bluetooth)', XboxController_Bluetooth = 'Xbox controller (bluetooth)', XboxController_Wired = 'Xbox controller (wired)', + XboxController_360 = 'Xbox 360 controller', Unknown = 'Unknown Joystick Model', } @@ -31,6 +32,7 @@ const JoystickMapVidPid: Map = new Map([ ['045e:02e0', JoystickModel.XboxOneS_Bluetooth], ['045e:0b13', JoystickModel.XboxController_Bluetooth], ['045e:0b12', JoystickModel.XboxController_Wired], + ['28de:11ff', JoystickModel.XboxController_360], ]) // Necessary to add functions