You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(core): add the G502 X PLUS gaming layout - #2456
Adds a GamingLayout for the G502 X PLUS (wpid 0x4099), as suggested in #1350 after #1729 / #2201 landed. Both model keys are covered: 04099 (measured in #1350) and 14099 (the white variant, measured on my unit).
The slot order is the same as the G502 X LIGHTSPEED in #2230, so the two entries could be merged into one layout later if preferred.
Changes
openlogi-core: new G502_X_PLUS layout (binding/gaming.rs), added to LAYOUTS and re-exported from binding.rs.
Slots 6/7: wheel tilt left/right, silent in host mode.
Slots 8–10: G9 behind the wheel (stock None; it cycles onboard profiles, which has no host equivalent), G8 front (NextDpiPreset), G7 rear (PreviousDpiPreset).
stock_dpi_presets: 800, 1200, 1600, 2400, 3200, the factory levels from Logitech's G502 X PLUS / LIGHTSPEED setup guide.
Tests: slot table and stock functions for both model keys; unknown_models_have_no_layout now uses 040b2 instead of 04099.
Hardware-tested on a G502 X PLUS (14099) over its Lightspeed receiver, Linux, dev agent + desktop from this branch:
The layout is picked up; G7, G8, G9 and both wheel tilts appear in the Buttons tab.
Bound G8 fires its action and the DPI does not change; bound wheel tilt left fires its action.
Unbound G7 steps the DPI down one preset; holding the unbound sniper drops to 800 and restores on release.
Not covered: the sniper, back and forward hotspots don't appear in the Buttons tab because the g502x_plus side render never downloads. Its manifest points at images/device/…, which the asset sync rejects ("asset file name must be a single safe path component"). That is unrelated to this layout; See #2457
[Medium impact] The PR appears safe to merge; no actionable issues were found.
Summary
Adds the G502_X_PLUS layout for model keys 04099 and 14099.
G502 X PLUS mice now use their measured button and DPI layout.
21omen explicitly acknowledged that the side image fails to download, hiding the sniper, Back, and Forward hotspots. The PR description identifies the existing asset-path rejection as separate work; it is not reported here.
Hardware test on macOS (G502 X PLUS, 04099, Lightspeed receiver)
Built from this PR plus #2461 on macOS (Apple Silicon, Metal toolchain) and ran the dev bundle against a real G502 X PLUS (wpid 0x4099, 87% battery).
The layout is picked up: Back, Forward, sniper (G6), G7, G8, G9, middle click and both wheel tilts appear in the Buttons tab, plus the G-Shift tab. Before, only middle click was offered.
Pressing each button works as expected on the hardware.
cargo test -p openlogi-core gaming: 16 passed.
This complements the Linux test already in the description (14099); this is macOS with the black unit.
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
GamingLayoutfor the G502 X PLUS (wpid0x4099), as suggested in #1350 after #1729 / #2201 landed. Both model keys are covered:04099(measured in #1350) and14099(the white variant, measured on my unit).The slot order is the same as the G502 X LIGHTSPEED in #2230, so the two entries could be merged into one layout later if preferred.
Changes
openlogi-core: newG502_X_PLUSlayout (binding/gaming.rs), added toLAYOUTSand re-exported frombinding.rs.G6, stockDpiShift), forward.G9behind the wheel (stockNone; it cycles onboard profiles, which has no host equivalent),G8front (NextDpiPreset),G7rear (PreviousDpiPreset).stock_dpi_presets: 800, 1200, 1600, 2400, 3200, the factory levels from Logitech's G502 X PLUS / LIGHTSPEED setup guide.unknown_models_have_no_layoutnow uses040b2instead of04099.Testing
cargo test -p openlogi-core gaming(16 passed)cargo clippy -p openlogi-core --all-targets -- -D warningscargo fmt --all -- --checkHardware-tested on a G502 X PLUS (
14099) over its Lightspeed receiver, Linux, dev agent + desktop from this branch:Not covered: the sniper, back and forward hotspots don't appear in the Buttons tab because the
g502x_plusside render never downloads. Its manifest points atimages/device/…, which the asset sync rejects ("asset file name must be a single safe path component"). That is unrelated to this layout; See #2457🤖 Generated with [Claude Code]