Skip to content

input: add cross-platform cabinet nudge controls - #2

Merged
freezy merged 6 commits into
masterfrom
feat/cabinet-nudge-input
Nov 7, 2026
Merged

freezy merged 6 commits into
masterfrom
feat/cabinet-nudge-input

Conversation

@freezy

@freezy freezy commented Nov 7, 2026

Copy link
Copy Markdown
Member

Changes

  • Read Open Pinball Device HID reports on Windows, Linux, and macOS, including Pinscape Pico acceleration, velocity, and button data.
  • Poll desktop joystick and gamepad axes and buttons on the native input thread. Expose POV directions, analog thresholds with hysteresis, alternative bindings, combos, and press-to-bind capture.
  • Preserve the protocol 2 ABI and existing keyboard and predefined OPD action handling. The new controller APIs are additive.

Verification

  • Native tests passed on Windows x64, Windows x86, and Linux. macOS x64 and arm64 builds linked.
  • Virtual controller tests exercised combos, capture during pause, hotplug, and focus recovery. The Linux USB/IP OPD fixture exercised generic button dispatch and reconnect. Physical hardware and macOS runtime validation are pending.

After merge, tag the merged commit as v0.0.6 to publish the NuGet package used by the Engine follow-up.

@greptile-apps

greptile-apps Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; all four previous findings are addressed, and no new actionable issue was found.

Summary

Adds cross-platform cabinet input while preserving protocol 2 and existing keyboard behavior.

  • Open Pinball Device reports now provide cabinet motion and button input.
  • Desktop controllers now supply configurable gameplay actions.

This review used source inspection; no builds or tests were run.

Diagram

sequenceDiagram
    participant Poll as Native polling thread
    participant Worker as Signature worker
    participant USB as USB device
    participant Host as Host callback
    Poll->>Worker: Start signature request
    Worker->>USB: Read signature with timeouts
    loop While request runs
        Poll->>Poll: Poll keyboard and controllers
    end
    USB-->>Worker: Signature result
    Worker-->>Poll: Completed result
    Poll->>Poll: Check device is still present
    Poll->>Host: Devices changed
Loading

Reviews (2) · Last reviewed commit: "input: address native cabinet input revi..." · Reviewed by Greptile

Comment thread src/OpenPinballInput.cpp Resolved
Comment thread src/NativeInput_Windows.cpp Resolved
Comment thread src/OpenPinballLinux.cpp Resolved
Comment thread src/ControllerInput.cpp Resolved
@freezy
freezy merged commit 9006a94 into master Nov 7, 2026
9 checks passed
@freezy
freezy deleted the feat/cabinet-nudge-input branch November 7, 2026 11:55
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