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/refs/heads/master?ds=sidebyside 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; } }