mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-01 09:27:39 +00:00
Use SDL_bool where appropriate in SDL events
This involved changing button state from Uint8 to SDL_bool, and made SDL_PRESSED and SDL_RELEASED unnecessary. Fixes https://github.com/libsdl-org/SDL/issues/10069
This commit is contained in:
parent
7d1bbae6b2
commit
6fc6e3dc7e
89 changed files with 935 additions and 956 deletions
|
@ -3614,6 +3614,14 @@ typedef SDL_JoystickGUID, SDL_GUID;
|
|||
- SDL_size_add_overflow
|
||||
+ SDL_size_add_check_overflow
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_PRESSED
|
||||
+ SDL_TRUE
|
||||
@@
|
||||
@@
|
||||
- SDL_RELEASED
|
||||
+ SDL_FALSE
|
||||
|
||||
// This should be the last rule in the file, since it works on SDL3 functions and previous rules may have renamed old functions.
|
||||
@ bool_return_type @
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue