Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GameController wrapper improvements #194

Merged
merged 5 commits into from
Jul 29, 2024

Conversation

mlarouche
Copy link
Contributor

  • Expose joy battery level event, it is send by more recent SDL2 versions when you have a game controller plugged-in.
  • Expose SDL_IsGameController() as `SDL.GameController.is()
  • Add GameController.instanceId() to get the joystick instance ID, required to handle controller removed event properly.
  • Fix GameController.nameForIndex() to return the correct type

@ikskuh ikskuh merged commit 3e03337 into ikskuh:master Jul 29, 2024
20 of 21 checks passed
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.

2 participants