From 2511c4fa6b2f5c4fae85a7b2e8ff12001318d9cd Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Tue, 27 Jul 2021 07:11:58 +0100 Subject: Disable mouse events --- WasmAudio/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'WasmAudio') diff --git a/WasmAudio/main.c b/WasmAudio/main.c index 9ddf5ba..4987fff 100644 --- a/WasmAudio/main.c +++ b/WasmAudio/main.c @@ -524,6 +524,11 @@ int main(int argc, const char * argv[]) { fprintf(stderr, "EXIT:Unable to init SDL: %s\n", SDL_GetError()); exit(1); } + SDL_EventState(SDL_MOUSEBUTTONUP, SDL_IGNORE); + SDL_EventState(SDL_MOUSEBUTTONDOWN, SDL_IGNORE); + SDL_EventState(SDL_MOUSEMOTION, SDL_IGNORE); + SDL_EventState(SDL_MOUSEWHEEL, SDL_IGNORE); + atexit(SDL_Quit); -- cgit v1.2.3