diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-05-17 17:24:59 -0400 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-05-22 15:44:16 -0400 |
commit | 1be33be6cab36fd056feb812bcc4999682b3425f (patch) | |
tree | 9e06d4d554efaa8a2e8941cb9a789e543733cfdb /tests/sdl_mouse.c | |
parent | b7ce870dd4b1352e308e212e77cd6161c1ec904e (diff) |
Fix the SDL mouse motion events
Diffstat (limited to 'tests/sdl_mouse.c')
-rw-r--r-- | tests/sdl_mouse.c | 1 |
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); |