summaryrefslogtreecommitdiff
path: root/WasmAudio/main.c
diff options
context:
space:
mode:
authorArturs Artamonovs <arturs.artamonovs@protonmail.com>2021-07-27 07:11:58 +0100
committerArturs Artamonovs <arturs.artamonovs@protonmail.com>2021-07-27 07:11:58 +0100
commit2511c4fa6b2f5c4fae85a7b2e8ff12001318d9cd (patch)
treeb63ecfb26bd5ac434763bc3339b24444f27f57fa /WasmAudio/main.c
parentef53f705cf5708875a43fc314d741964ffa71637 (diff)
downloadWasmAudio-2511c4fa6b2f5c4fae85a7b2e8ff12001318d9cd.tar.gz
WasmAudio-2511c4fa6b2f5c4fae85a7b2e8ff12001318d9cd.zip
Disable mouse events
Diffstat (limited to 'WasmAudio/main.c')
-rw-r--r--WasmAudio/main.c5
1 files changed, 5 insertions, 0 deletions
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);