Open
Description
Hello there,
I've bought an aftermarket USB-Adapter for the Logitech G27 Shifter.
lsusb
shows this:
Bus 001 Device 008: ID 1209:f00d Generic RomanStepanov Shifter/Pedals Adapter
This device gets mapped in Proton/wine or native linux games like BeamNG.drive via SDL as a xinput gamepad.
My current workaround is to use a custom mapping to map the essential buttons to useable gamepad buttons:
SDL_GAMECONTROLLERCONFIG="03008f6a091200000df0000011010000,InterBiometrics Logitech@ Shifter V2,a:b7,b:b8,x:b9,y:b10,back:b11,guide:b0,start:b13,leftstick:b14,rightstick:b12,leftshoulder:b1,rightshoulder:b2,dpup:b5,dpdown:b7,dpleft:b4,dpright:b6,platform:Linux,crc:6a8f,"
But this is not really pratical and not all 15 buttons can be used.
jstest --normal /dev/input/js3
outputs this:
Driver version is 2.1.0.
Joystick (InterBiometrics Logitech@ Shifter V2) has 1 axes ((null))
and 15 buttons (BtnA, BtnB, BtnC, BtnX, BtnY, BtnZ, BtnTL, BtnTR, BtnTL2, BtnTR2, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR).
Testing ... (interrupt to exit)
Axes: 0: -1365 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off 12:off 13:off 14:off
Is there a way to tell SDL to stop promoting this device as an Gamepad and use it as a Joystick with all available buttons?
Thanks for looking into this.
Metadata
Metadata
Assignees
Labels
No labels