From: Antonio Ospite Date: Thu, 21 Mar 2013 15:55:26 +0000 (+0100) Subject: Handle the default case more robustly when parsing events X-Git-Url: https://git.ao2.it/experiments/SDL.git/commitdiff_plain/HEAD?hp=6e367459f78f0c19ab70911871bfa6b366ed9710 Handle the default case more robustly when parsing events --- diff --git a/scrolling/sdl-scrolling.c b/scrolling/sdl-scrolling.c index 4b9475f..df3a2f3 100644 --- a/scrolling/sdl-scrolling.c +++ b/scrolling/sdl-scrolling.c @@ -158,6 +158,11 @@ int main(int argc, char *argv[]) /* TODO: improve scaling here */ y_offset = event.jaxis.value; } + break; + + default: + /* ignore other events */ + break; } }