mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 14:56:00 +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:
@@ -2474,7 +2474,7 @@ void SDL_UpdateAudio(void)
|
||||
SDL_zero(event);
|
||||
event.type = i->type;
|
||||
event.adevice.which = (Uint32) i->devid;
|
||||
event.adevice.recording = (i->devid & (1<<0)) ? 0 : 1; // bit #0 of devid is set for playback devices and unset for recording.
|
||||
event.adevice.recording = ((i->devid & (1<<0)) != 0); // bit #0 of devid is set for playback devices and unset for recording.
|
||||
SDL_PushEvent(&event);
|
||||
}
|
||||
SDL_free(i);
|
||||
|
Reference in New Issue
Block a user