Re: SDL_Controller design
Alex Szpakowski <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
The SDL_GameController API is so your code can determine that e.g. the left trigger on a controller is held down, no matter what controller-like device is used and no matter what OS or drivers are used (for example the button and axis indices reported by the Xbox 360 controller on Windows are different than those reported when using the Tattiebogle driver for the 360 on macOS). The latest SDL source code has an API in SDL_Joystick to get the vendor and product IDs of a joystick. That’s what you’d want to use if you want to display different button prompts (images and text) depending on what controller is actually used. _______________________________________________ SDL mailing list [email protected] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org