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
Options sliders cannot be operated by keyboard or gamepad #523
Every slider in the options menus can only be operated by dragging with the mouse. Keyboard and gamepad users cannot reach or change any of them.
This affects all 16 sliders: Render Distance, Chunk Detail, Simulation Distance, Max Framerate, FOV, FOV Effects, Sensitivity, and the ten volume sliders.
Motivation
In build_options_grid (pomme-client/src/ui/menu/options.rs:683-711), a widget whose label matches a slider prefix takes the push_slider path and hits continue at line 710, before the ctx.focused(true) call at line 713 that every other widget uses to claim a focus index. Sliders therefore never join the Tab ring.
The index accounting itself is fine: FocusCtx::focused (pomme-client/src/ui/menu/helpers.rs:207-214) hands out indices from a running counter and finish_focus (pomme-client/src/ui/menu/mod.rs:801-806) derives focusable_count from that same counter, so skipping a widget leaves no gap. The sliders are simply absent.
26.2 makes sliders fully keyboard operable. AbstractSliderButton.keyPressed toggles canChangeValue on a selection key, then steps the value by 1 / (width - 8) per left/right press.
Proposed Solution
Give sliders a focus index instead of skipping the focus path
Paint the focused state, matching how push_button_f treats focused as hovered
Handle the selection key to toggle an editing mode, then left/right to step the value by 1 / (w - handle_w), mirroring AbstractSliderButton
Activity
fix gamepad DPad moves options sliders (#597)