-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDL3 preparation (event_sdl.c). (#420)
* Most references to "gamecontrollers" in code and config settings are now "gamepad", which is half the length, less annoying to type and look at, and also matches SDL3's current renaming of their API. The old "gamecontroller" config settings still work, but config.txt now only contains references to "gamepad". * The SDL event unicode fallback behavior now only triggers when text events are disabled in SDL2+. This should allow text input events if the onscreen keyboard is active in the Android port, but still allow the unicode fallback to work when it's hidden. Text input is now disabled whenever a platform supports an onscreen keyboard instead of being excluded by Android specifically. * SDL joystick GUIDs are now derived from the `SDL_Joystick *` rather than the SDL device index. The SDL device index is now only used for initializing the `SDL_Joystick` and `SDL_Gamepad` and getting the mapping string, which should make it easier to support SDL2 and SDL3 at the same time.
- Loading branch information
Showing
10 changed files
with
183 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.