summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>2011-09-07 06:59:07 +0000
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>2011-09-07 06:59:07 +0000
commite277ec0fbfcf9468a725cb2d4823f1990c988c69 (patch)
tree2d16a09e190f5a990c32f7131cb02f410eaf355d
parentad8e55c611e4a172a8495d7f7b667bd04973ad81 (diff)
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: 63259
-rw-r--r--src/bin/engine_software_sdl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/engine_software_sdl.c b/src/bin/engine_software_sdl.c
index b05c99e..bf7dd1f 100644
--- a/src/bin/engine_software_sdl.c
+++ b/src/bin/engine_software_sdl.c
@@ -49,11 +49,11 @@ engine_software_sdl_loop(void)
49 break; 49 break;
50 case SDL_MOUSEBUTTONDOWN: 50 case SDL_MOUSEBUTTONDOWN:
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_down(evas, event.button.state, EVAS_BUTTON_NONE, 0, NULL); 52 evas_event_feed_mouse_down(evas, event.button.button, EVAS_BUTTON_NONE, 0, NULL);
53 break; 53 break;
54 case SDL_MOUSEBUTTONUP: 54 case SDL_MOUSEBUTTONUP:
55 evas_event_feed_mouse_move(evas, event.button.x, event.button.y, 0, NULL); 55 evas_event_feed_mouse_move(evas, event.button.x, event.button.y, 0, NULL);
56 evas_event_feed_mouse_up(evas, event.button.state, EVAS_BUTTON_NONE, 0, NULL); 56 evas_event_feed_mouse_up(evas, event.button.button, EVAS_BUTTON_NONE, 0, NULL);
57 break; 57 break;
58 case SDL_VIDEORESIZE: 58 case SDL_VIDEORESIZE:
59 evas_output_viewport_set(evas, 0, 0, 59 evas_output_viewport_set(evas, 0, 0,