Expedite: Applying same patch as the one I put for sdl engine on September 7th.
authorkakaroto <kakaroto@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 23 Jul 2012 11:58:57 +0000 (11:58 +0000)
committerkakaroto <kakaroto@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 23 Jul 2012 11:58:57 +0000 (11:58 +0000)
    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.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/expedite@74322 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/engine_gl_sdl.c

index 5a230b3..c30a008 100644 (file)
@@ -45,11 +45,11 @@ engine_gl_sdl_loop(void)
              break;
           case SDL_MOUSEBUTTONDOWN:
              evas_event_feed_mouse_move(evas, event.button.x, event.button.y, 0, NULL);
-             evas_event_feed_mouse_down(evas, event.button.state, EVAS_BUTTON_NONE, 0, NULL);
+             evas_event_feed_mouse_down(evas, event.button.button, EVAS_BUTTON_NONE, 0, NULL);
              break;
           case SDL_MOUSEBUTTONUP:
              evas_event_feed_mouse_move(evas, event.button.x, event.button.y, 0, NULL);
-             evas_event_feed_mouse_up(evas, event.button.state, EVAS_BUTTON_NONE, 0, NULL);
+             evas_event_feed_mouse_up(evas, event.button.button, EVAS_BUTTON_NONE, 0, NULL);
              break;
           case SDL_VIDEORESIZE:
              evas_output_viewport_set(evas, 0, 0,