aboutsummaryrefslogtreecommitdiff
path: root/tests/sdl_mouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sdl_mouse.c')
-rw-r--r--tests/sdl_mouse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sdl_mouse.c b/tests/sdl_mouse.c
index eb4aa425..8af87c8c 100644
--- a/tests/sdl_mouse.c
+++ b/tests/sdl_mouse.c
@@ -12,6 +12,7 @@ void one() {
switch(event.type) {
case SDL_MOUSEMOTION: {
SDL_MouseMotionEvent *m = (SDL_MouseMotionEvent*)&event;
+ assert(m->state == 0);
int x, y;
SDL_GetMouseState(&x, &y);
assert(x == m->x && y == m->y);