Skip to content

Support per-device controller button bindings - #4

Merged
freezy merged 3 commits into
masterfrom
feat/controller-button-mapping
Nov 21, 2026
Merged

freezy merged 3 commits into
masterfrom
feat/controller-button-mapping

Conversation

@freezy

@freezy freezy commented Nov 21, 2026

Copy link
Copy Markdown
Member

Summary

  • Expose sampled button states per device for menu navigation and use controller buttons for gameplay actions alongside keyboard bindings.
  • Expose joystick hats and gamepad triggers as bindable controls, and route Open Pinball Device secondary flipper contacts to the upper flipper actions.

Verification

  • Built NativeInput and passed both native test suites on Windows x64 and x86.
  • The Open Pinball Device regression test covers independent presses and releases for both upper flipper contacts.

@greptile-apps

greptile-apps Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; both previous findings are fixed and no new actionable issues were found.

Summary

The PR adds per-device button snapshots and lets controller buttons drive gameplay actions alongside keyboard bindings.

  • Controller buttons can now trigger regular gameplay actions.
  • Callers can read each device’s current button levels.
  • Gamepad triggers can now work like bindable buttons.
  • OPD secondary contacts now drive the upper flippers.

No new actionable issues were found in the changes since the previous review. Tests were inspected but not run.

Reviews (2) · Last reviewed commit: "input: fix trigger capture and partial b..." · Reviewed by Greptile

Comment thread src/ControllerInput.cpp Resolved
Comment thread src/NativeButtons.cpp Resolved
@freezy
freezy merged commit 1b17a28 into master Nov 21, 2026
9 checks passed
@freezy
freezy deleted the feat/controller-button-mapping branch November 21, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant