matlo / GIMX

The GIMX software.
GNU General Public License v3.0
591 stars 105 forks source link

On GNU/Linux, wheel controls the mouse #557

Closed matlo closed 6 years ago

matlo commented 6 years ago

For example with a DFGT, wheel axis and gas pedal control the pointer, and dial controls the mouse buttons.

This seems to be a side effect of changing USAGE_JOYSTICK and USAGE_GAMEPAD to USAGE_MULTIAXIS_CONTROLLER in the HID descriptor (in the gimxuhid library). This makes xinput create an extra mouse:

xinput --list
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Logitech Gaming Mouse G502                id=8    [slave  pointer  (2)]
⎜   ↳ Logitech Gaming Mouse G502                id=9    [slave  pointer  (2)]
⎜   ↳ Teensy Keyboard/Mouse/Joystick            id=11   [slave  pointer  (2)]
⎜   ↳ Belkin Belkin n52te                       id=13   [slave  pointer  (2)]
⎜   ↳ Driving Force GT                          id=16   [slave  pointer  (2)]

Work-arounds:

matlo commented 6 years ago

Wiki has to be updated before closing this issue (as Xorg has to be restarted).