mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-01 01:17:40 +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
|
@ -228,7 +228,7 @@ static void loop(void *arg)
|
|||
case SDL_EVENT_KEY_UP:
|
||||
switch (event.key.key) {
|
||||
case SDLK_LSHIFT:
|
||||
isRect = (event.key.state == SDL_PRESSED);
|
||||
isRect = event.key.down;
|
||||
if (active) {
|
||||
active->isRect = isRect;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue