summaryrefslogtreecommitdiff
path: root/WasmAudio/main.c
diff options
context:
space:
mode:
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);