We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Various SDL_GameController functions need to be implemented in _sdl2. https://wiki.libsdl.org/CategoryGameController
Better interface for controller mapping in pygame (ask @husano896 what this is about)
https://wiki.libsdl.org/SDL_GameControllerAddMapping
At this moment, mapping uses a really long string as SDL2 like
"341a3608000000000000504944564944,Afterglow PS3 Controller,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b8,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftshoulder:b4,rightshoulder:b5,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7"
What I think is:
since we can easily get guid and controller name, add mapping should use a easier parameter like
mapping = { "a" : "b1", "b" : "b2", "y" : "b3", "x" : "b0" # etc... } controller.add_mapping(mapping)
and so as get_mapping.
mapping = controller.get_mapping() # return a dict
The text was updated successfully, but these errors were encountered:
Linking: #2056
Sorry, something went wrong.
No branches or pull requests
Issue №711 opened by illume at 2019-01-03 11:11:52
Various SDL_GameController functions need to be implemented in _sdl2.
https://wiki.libsdl.org/CategoryGameController
Comments
# # husano896 commented at 2019-05-14 15:08:04
https://wiki.libsdl.org/SDL_GameControllerAddMapping
At this moment, mapping uses a really long string as SDL2 like
"341a3608000000000000504944564944,Afterglow PS3 Controller,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b8,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftshoulder:b4,rightshoulder:b5,leftstick:b10,rightstick:b11,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7"
What I think is:
since we can easily get guid and controller name, add mapping should use a easier parameter like
and so as get_mapping.
The text was updated successfully, but these errors were encountered: