Skip to content

Fix macOS gamepad event handling and mappings#40

Open
squk wants to merge 4 commits into
ColleagueRiley:mainfrom
squk:fix/macos-gamepad-events
Open

Fix macOS gamepad event handling and mappings#40
squk wants to merge 4 commits into
ColleagueRiley:mainfrom
squk:fix/macos-gamepad-events

Conversation

@squk
Copy link
Copy Markdown
Contributor

@squk squk commented Jan 15, 2026

  • Assign the device to the gamepad source in the connection callback.
  • Fix absMap and button offsets

squk added 3 commits January 13, 2026 20:38
- Assign the device to the gamepad source in the connection callback.
- Pump the CFRunLoop in the poll function to ensure events are processed.
@squk squk changed the title Fix macOS gamepad event handling Fix macOS gamepad event handling and mappings Jan 15, 2026
This was conflicting with sokol_app (and likely other frameworks) event loops, causing dropped keyboard inputs. The gamepad->src.device assignment fix is sufficient for IOHID callbacks to function correctly within the host application's run loop.
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