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

Controller Support #13

Open
SirRamEsq opened this issue Jan 4, 2018 · 2 comments
Open

Controller Support #13

SirRamEsq opened this issue Jan 4, 2018 · 2 comments
Assignees

Comments

@SirRamEsq
Copy link
Owner

Controller input needs to be able to be mapped to input events.
There also must be a way to navigate the GUI using only a controller.

@SirRamEsq SirRamEsq self-assigned this Jan 4, 2018
@SirRamEsq
Copy link
Owner Author

For default mappings take a look at
https://github.com/gabomdq/SDL_GameControllerDB

@SirRamEsq
Copy link
Owner Author

As i understand it, gamepads arbitrary button mappings are converted by sdl to an xinput style mapping. (ie, BTN A,B,X,Y, left/right thumbstick, dpad, triggers)

From there, maybe there could be a text file mapping input names to input events. Ie
Left = DPAD_LEFT_PLAYER1
Jump = BTN_A_P1
and these mappings would be what would change from in game guis.

Source for gameController header at
http://hg.libsdl.org/SDL/raw-file/1b5280cd5885/include/SDL_gamecontroller.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant