Fix Legion Go Y1 being mapped to middle mouse#1384
Fix Legion Go Y1 being mapped to middle mouse#1384p3stuff wants to merge 1 commit intoValkirie:mainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Legion controller now uses a dedicated Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip Migrating from UI to YAML configuration.Use the |
|
Logic appears correct, except that on my Legion Go 2 controllers, wheel byte IDX is 25 not 24. Are you using Legion Go 1 controllers ? See current EA fix: https://www.diffchecker.com/FuCy6xgQ/ |
|
Ahh yes, I am using the Legion Go 1 controllers. |
This tracks down the Legion Go Y1 binding issue to the Lenovo input parser.
Y1andB6were both being decoded from the sameBACK_IDXvalue (128). On Legion Go,B6is mapped to middle mouse, so pressingY1always also triggered middle click even whenY1was disabled.This change updates the parser so wheel events use a dedicated wheel byte (
WHEEL_IDX = 24) instead of sharing theY1byte.After this change:
Y1no longer generates middle mouseY1works as expectedFixes #1329
Summary by CodeRabbit