diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-05-24 01:42:15 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-05-24 01:42:15 -0700 |
commit | e6228eb1692bcf04c9f47f0af1655cca452d3132 (patch) | |
tree | 3e33b988af0c0c042c1fd0e0b86a6734cf99aedf /tests/sdl_mouse.c | |
parent | 226e89cf2dad4fa96603ebd6f2255c4cbeb89bdd (diff) | |
parent | a431ee57217c68ecbf47eb8932d09718c38e0cc9 (diff) |
Merge pull request #435 from ehsan/sdlmouse
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); |