projects
/
experiments
/
SDL.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6e36745
)
Handle the default case more robustly when parsing events
master
author
Antonio Ospite <ospite@studenti.unina.it>
Thu, 21 Mar 2013 15:55:26 +0000
(16:55 +0100)
committer
Antonio Ospite <ospite@studenti.unina.it>
Thu, 21 Mar 2013 15:55:26 +0000
(16:55 +0100)
scrolling/sdl-scrolling.c
patch
|
blob
|
history
diff --git
a/scrolling/sdl-scrolling.c
b/scrolling/sdl-scrolling.c
index
4b9475f
..
df3a2f3
100644
(file)
--- 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;
}
/* TODO: improve scaling here */
y_offset = event.jaxis.value;
}
+ break;
+
+ default:
+ /* ignore other events */
+ break;
}
}
}
}