Potentially related to How to get my MIDI device running in DT but separating on a different thread:
I’m trying to set up shortcuts to game controllers and I’m unable to get it to work.
Environment:
- Kubuntu 21.10
- Darktable 3.8.0, installed from OBS by adding the repository and
apt install
- Game controllers: VKB Gladiator Next, Thrustmaster TWCS (throttle + pedals). All of them appear available in the KDE game controller dialog and
Output of darktable -d input
0.388087 [input device] Input devices found:
0.388104 LogiOps Virtual Input (no cursor), source: GDK_SOURCE_KEYBOARD, mode: GDK_MODE_DISABLED, 0 axes, 0 keys
0.388107
0.388108 Power Button (no cursor), source: GDK_SOURCE_KEYBOARD, mode: GDK_MODE_DISABLED, 0 axes, 0 keys
0.388109
0.388111 Virtual core XTEST keyboard (no cursor), source: GDK_SOURCE_KEYBOARD, mode: GDK_MODE_DISABLED, 0 axes, 0 keys
0.388112
0.388113 Logitech Gaming Keyboard G610 Keyboard (no cursor), source: GDK_SOURCE_KEYBOARD, mode: GDK_MODE_DISABLED, 0 axes, 0 keys
0.388115
0.388116 Logitech Gaming Keyboard G610 (no cursor), source: GDK_SOURCE_KEYBOARD, mode: GDK_MODE_DISABLED, 0 axes, 0 keys
0.388117
0.388118 Logitech Logitech G933 Gaming Wireless Headset (no cursor), source: GDK_SOURCE_KEYBOARD, mode: GDK_MODE_DISABLED, 0 axes, 0 keys
0.388119
0.388120 Logitech Logitech G933 Gaming Wireless Headset Consumer Control (no cursor), source: GDK_SOURCE_KEYBOARD, mode: GDK_MODE_DISABLED, 0 axes, 0 keys
0.388121
0.388122 Power Button (no cursor), source: GDK_SOURCE_KEYBOARD, mode: GDK_MODE_DISABLED, 0 axes, 0 keys
0.388123
0.388127 LogiOps Virtual Input (no cursor), source: GDK_SOURCE_MOUSE, mode: GDK_MODE_DISABLED, 4 axes, 0 keys
0.388130 GDK_AXIS_IGNORE
0.388131 GDK_AXIS_IGNORE
0.388132 GDK_AXIS_IGNORE
0.388133 GDK_AXIS_IGNORE
0.388133
0.388134 Virtual core XTEST pointer (no cursor), source: GDK_SOURCE_MOUSE, mode: GDK_MODE_DISABLED, 2 axes, 0 keys
0.388136 GDK_AXIS_IGNORE
0.388136 GDK_AXIS_IGNORE
0.388138
1.540710 [gamepad_open_devices] SDL initialized
Current behavior:
-
When setting a new shortcut, none of the buttons or sliders of any of the three controllers I have do anything.
-
No output is printed in console at any point: when opening the shortcuts dialog, when selecting one action, when double clicking an action to set it up, or when pressing knobs, buttons or sliders in the controllers.
-
The shortcut dialog accepts any keyboard input normally, so everything seems to be working except recognizing the game devices.
-
When I add a logitech gamepad, the console output shows this at startup
[gamepad_open_devices] opened game controller 'Logitech F310 Gamepad (XInput)'
but the buttons are not recognized, like the other controllers.
Questions for the devs:
- Is the new input system supposed to accept any game controller? From my very limited understanding all of them are abstracted to collections of buttons, toggles and analog axis, so all controllers should be supported. Is that assumption right?
- If supported, is there any additional configuration option I should enable?
- Any ideas to get this working? While the joystick is probably not very useful, the Thrustmaster throttle and pedals have a lot of very interesting inputs for darktable.
Thanks!
Also, separately from this issue resolution, a HUGE thank you for all the devs, maintainers, and people herders here in this forum. You are all rockstars!