Skip to content

fix gamepad DPad moves options sliders - #597

Merged
Purdze merged 4 commits into
PommeMC:masterfrom
lazy-importer:fix/gamepad-slider-dpad
Sep 20, 2026
Merged

Purdze merged 4 commits into
PommeMC:masterfrom
lazy-importer:fix/gamepad-slider-dpad

Conversation

@lazy-importer

Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Refactor / code cleanup
  • Performance improvement
  • Chore / tooling
  • Documentation

Summary

  • What: options sliders ignored gamepad; DPad Left/Right did nothing on a focused slider.
  • Cause: arrow_steps() only summed keyboard ArrowLeft/ArrowRight events; MenuInput had no gamepad channel.
  • Fix: MenuInput.gamepad_steps (DPad Right minus Left, built in build_menu_input), added into arrow_steps().

Reference

n/a (input plumbing; mirrors AbstractSliderButton.keyPressed stepping)

Testing

  • cargo fmt -p pomme-client -- --check : ok
  • cargo test -p pomme-client slider : 8 passed

MenuInput carries gamepad_steps (DPad Right minus Left) from build_menu_input; arrow_steps adds it to keyboard arrows so focused sliders step on controller. Closes the gamepad half of PommeMC#523.
@github-actions github-actions Bot added the bug Something isn't working label Sep 17, 2026
@github-actions github-actions Bot added the merge conflict Conflicts with the base branch and needs a merge label Sep 20, 2026
@github-actions github-actions Bot removed the merge conflict Conflicts with the base branch and needs a merge label Sep 20, 2026
@Purdze
Purdze merged commit 6a932af into PommeMC:master Sep 20, 2026
10 checks passed
@lazy-importer
lazy-importer deleted the fix/gamepad-slider-dpad branch September 24, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants