2
0
mirror of https://github.com/Genymobile/scrcpy synced 2025-08-31 06:15:25 +00:00

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

@@ -797,7 +797,8 @@ sc_input_manager_process_file(struct sc_input_manager *im,
}
void
sc_input_manager_handle_event(struct sc_input_manager *im, SDL_Event *event) {
sc_input_manager_handle_event(struct sc_input_manager *im,
const SDL_Event *event) {
bool control = im->controller;
switch (event->type) {
case SDL_TEXTINPUT: