Skip to content

Expose live controller button states to Unity - #640

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
Owner

Summary

  • Expose sampled, allocation-free controller button state and a revision for device list changes.
  • Honor an explicitly empty set of keyboard bindings so a controller-only setup can clear its keyboard assignments.

The new state-reading API requires NativeInput PR #4 and a NativeInput package containing that change. Older native builds continue to initialize without the state-reading capability.

Verification

  • Unity Player tests passed with the matching local native build.

@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; no actionable issues were found.

Summary

Exposes sampled controller button states and a device-list revision to Unity.

  • Unity can read live controller buttons and track device-list changes.
  • An empty host binding list now disables built-in keyboard keys.

No new actionable issues were found. The earlier documentation and debug-label finding is fixed: both now distinguish null from empty bindings.

Reviews (3) · Last reviewed commit: "input: bump NativeInput to 0.0.8" · Reviewed by Greptile

@freezy
freezy merged commit 3b19505 into master Nov 21, 2026
15 checks passed
@freezy
freezy deleted the feat/controller-button-mapping branch November 21, 2026 20:30
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