Pass const pointers to events

SDL_Events are only read.
This commit is contained in:
Romain Vimont
2023-04-03 21:41:54 +02:00
parent fdf465851c
commit 2e532afd2b
4 changed files with 6 additions and 4 deletions

View File

@@ -812,7 +812,7 @@ sc_screen_is_mouse_capture_key(SDL_Keycode key) {
}
bool
sc_screen_handle_event(struct sc_screen *screen, SDL_Event *event) {
sc_screen_handle_event(struct sc_screen *screen, const SDL_Event *event) {
bool relative_mode = sc_screen_is_relative_mode(screen);
switch (event->type) {