https://bugs.kde.org/show_bug.cgi?id=328987
Jakob Petsovits <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|REOPENED |RESOLVED --- Comment #88 from Jakob Petsovits <[email protected]> --- (In reply to Scall from comment #87) > Joystickwake might be a good example of how to accomplish this: > https://codeberg.org/forestix/joystickwake > From its README: > “While running, it monitors udev to find devices with the ID_INPUT_JOYSTICK > property (including devices that are plugged in later) and reacts to > activity from any of them.” This is in fact exactly what KWin's new game controller plugin is doing. The problem mentioned in Comment 83 is that this same functionality, as of Plasma 6.6, is also bundled with mouse emulation, which does not work so well with racing wheels as they don't return to the axis center. Imho the solution to this would be to change the meaning of the System Settings switch "Allow using as pointer and keyboard". Switched on it would be the same as before, but switched off it would keep the plugin enabled while leaving out the call to `m_inputdevice->emulateInputDevice(ev)` in KWin's GameController::handleEvdevEvent(). The flipside of that plan, however, is that we'd be keeping a system awake with only minimal joystick movement - and to be fair, this also seems like a problem in the current code which we may want to fix by slightly limiting which input events will cause input()->simulateUserActivity() in that same function. Anyway, folks. What KDE has added is probably really close to what you need. It's not like a whole bunch of hacky work has been added and you have to wait another 10 years for a proper solution. This is the proper solution, we just need to make sure that it works (or remains disabled by default) for all kinds of controllers and use cases. Let's file follow-up bug reports for whatever still doesn't work, like Nate suggested above. -- You are receiving this mail because: You are watching all bug changes.
