Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
548 changes: 548 additions & 0 deletions public/images/Ipega9023.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/joystick-profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,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, 17],
},
[JoystickModel.IpegaPG9023]: {
name: 'Ipega9023',
axes: [0, 1, 2, 3],
buttons: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17],
},
[JoystickModel.XboxOneS_Bluetooth]: {
name: 'Xbox One S',
axes: [0, 1, 2, 3],
Expand Down
3 changes: 3 additions & 0 deletions src/components/joysticks/JoystickPS.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@ enum SVGModel {
PS4 = 'PS4',
PS5 = 'PS5',
LogitechExtreme3DPro = 'LogitechExtreme3DPro',
IPEGAPG9023 = 'Ipega9023',
}

const joystickSvgModel = computed(() => {
switch (joystickModel.value) {
case JoystickModel.LogitechExtreme3DPro:
return SVGModel.LogitechExtreme3DPro
case JoystickModel.IpegaPG9023:
return SVGModel.IPEGAPG9023
default:
return SVGModel.PS4
}
Expand Down
2 changes: 2 additions & 0 deletions src/libs/joystick/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export enum JoystickModel {
XboxController_Wired = 'Xbox controller (wired)',
XboxController_360 = 'Xbox 360 controller',
LogitechExtreme3DPro = 'Logitech Extreme 3D Pro',
IpegaPG9023 = 'Ipega PG-9023',
Unknown = 'Unknown Joystick Model',
}

Expand All @@ -35,6 +36,7 @@ const JoystickMapVidPid: Map<string, JoystickModel> = new Map([
['045e:0b12', JoystickModel.XboxController_Wired],
['28de:11ff', JoystickModel.XboxController_360],
['046d:c215', JoystickModel.LogitechExtreme3DPro],
['1949:0402', JoystickModel.IpegaPG9023],
])

// Necessary to add functions
Expand Down
Loading