From dc7f905d63a62d98754c231c610bcf0293ad3610 Mon Sep 17 00:00:00 2001
From: Antonio Ospite <ospite@studenti.unina.it>
Date: Thu, 21 Mar 2013 16:55:26 +0100
Subject: [PATCH] Handle the default case more robustly when parsing events

---
 scrolling/sdl-scrolling.c | 5 +++++
 1 file changed, 5 insertions(+)

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;
 			}
 		}
 
-- 
2.1.4