This PR adds initial support for the Lenovo Legion Go's controller while in X-input mode.
It does the following:
Legion_L + X maps to the onscreen keyboard
Legion_L + A maps to the QAM
Legion_L + B maps to the Steam/Guide button
Note that it also now seems to suspend properly when pressing the power button, tapping the power button now shows the Steam suspend animation while in gamescope-session.
Tested on the Legion Go with the controller in X-input mode while both attached and detached, confirmed working in both cases.
Edit: noticed that some users can't use the Legion + B combination, we suspect a controller firmware update is the reason why.
Those that did the firmware update can no longer see the Legion + B combo register anything with evtest
Device Info:
tested on:
Lenovo Legion Go
ChimeraOS 45 (unstable)
kernel 6.6.0-chos1-chimeraos-2
BIOS N3CN22WW
Details
This PR adds initial support for the Lenovo Legion Go's controller while in X-input mode.
It does the following:
Legion_L + X
maps to the onscreen keyboardLegion_L + A
maps to the QAMLegion_L + B
maps to the Steam/Guide buttonNote that it also now seems to suspend properly when pressing the power button, tapping the power button now shows the Steam suspend animation while in gamescope-session.
Tested on the Legion Go with the controller in X-input mode while both attached and detached, confirmed working in both cases.
Edit: noticed that some users can't use the Legion + B combination, we suspect a controller firmware update is the reason why. Those that did the firmware update can no longer see the Legion + B combo register anything with evtest
Device Info:
tested on:
Lenovo Legion Go ChimeraOS 45 (unstable) kernel 6.6.0-chos1-chimeraos-2 BIOS N3CN22WW