summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>2012-07-23 11:58:57 +0000
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>2012-07-23 11:58:57 +0000
commit5fb6f8bccf945cc21ce0a3afb722898855381e1d (patch)
tree9dd45e0acf822e8435b24e11305c7639af28a49a
parent2fb9aeef35f65c24dd3c8b29ce5a43ad98ac84cd (diff)
Expedite: Applying same patch as the one I put for sdl engine on September 7th.
Expedite: Fix bug with mouse handling in sdl engine A button press would send '1' as the button (the pressed state) and the release would send '0', so evas would think button 1 was never released so it would never register any button releases. SVN revision: 74322
-rw-r--r--src/bin/engine_gl_sdl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/engine_gl_sdl.c b/src/bin/engine_gl_sdl.c
index 5a230b3..c30a008 100644
--- a/src/bin/engine_gl_sdl.c
+++ b/src/bin/engine_gl_sdl.c
@@ -45,11 +45,11 @@ engine_gl_sdl_loop(void)
45 break; 45 break;
46 case SDL_MOUSEBUTTONDOWN: 46 case SDL_MOUSEBUTTONDOWN:
47 evas_event_feed_mouse_move(evas, event.button.x, event.button.y, 0, NULL); 47 evas_event_feed_mouse_move(evas, event.button.x, event.button.y, 0, NULL);
48 evas_event_feed_mouse_down(evas, event.button.state, EVAS_BUTTON_NONE, 0, NULL); 48 evas_event_feed_mouse_down(evas, event.button.button, EVAS_BUTTON_NONE, 0, NULL);
49 break; 49 break;
50 case SDL_MOUSEBUTTONUP: 50 case SDL_MOUSEBUTTONUP:
51 evas_event_feed_mouse_move(evas, event.button.x, event.button.y, 0, NULL); 51 evas_event_feed_mouse_move(evas, event.button.x, event.button.y, 0, NULL);
52 evas_event_feed_mouse_up(evas, event.button.state, EVAS_BUTTON_NONE, 0, NULL); 52 evas_event_feed_mouse_up(evas, event.button.button, EVAS_BUTTON_NONE, 0, NULL);
53 break; 53 break;
54 case SDL_VIDEORESIZE: 54 case SDL_VIDEORESIZE:
55 evas_output_viewport_set(evas, 0, 0, 55 evas_output_viewport_set(evas, 0, 0,