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
expedite-1.1
Youness Alaoui 12 years ago
parent ad8e55c611
commit e277ec0fbf
  1. 4
      src/bin/engine_software_sdl.c

@ -49,11 +49,11 @@ engine_software_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,

Loading…
Cancel
Save