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

Added support to use controllers with SDL_GameController. #2509

Closed
wants to merge 1 commit into from
Closed

Added support to use controllers with SDL_GameController. #2509

wants to merge 1 commit into from

Conversation

DJLink
Copy link
Contributor

@DJLink DJLink commented Apr 22, 2019

After the conversation on #2484 decided to update the existing SDL code to use SDL_GameController. Did some tests and seems to be working ok.

I tried to keep the code as close as possible to glfw and XInput examples to facilitate any future changes.
Let me know if any changes are required, I'll be glad to update it.

Updated sdl examples to use SDL_INIT_GAMECONTROLLER flag
@ocornut ocornut added backends nav keyboard/gamepad navigation labels Apr 23, 2019
ocornut pushed a commit that referenced this pull request Apr 23, 2019
Updated sdl examples to use SDL_INIT_GAMECONTROLLER flag
ocornut added a commit that referenced this pull request Apr 23, 2019
…asGamepad not being set. Enable in Emscripten demo. Tweaks. (#2509, #2484).
@ocornut
Copy link
Owner

ocornut commented Apr 23, 2019

Thank you David, much appreciated!
This is merged now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backends nav keyboard/gamepad navigation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants