[MPlayer-cvslog] r31092 - trunk/libvo/sdl_common.c

reimar subversion at mplayerhq.hu
Sun Apr 25 18:15:00 CEST 2010


Author: reimar
Date: Sun Apr 25 18:15:00 2010
New Revision: 31092

Log:
Support mouse movements in SDL.
Currently for some reason broken with -vo sdl.

Modified:
   trunk/libvo/sdl_common.c

Modified: trunk/libvo/sdl_common.c
==============================================================================
--- trunk/libvo/sdl_common.c	Sun Apr 25 18:13:57 2010	(r31091)
+++ trunk/libvo/sdl_common.c	Sun Apr 25 18:15:00 2010	(r31092)
@@ -47,7 +47,6 @@ int vo_sdl_init(void)
 
     // We don't want those in our event queue.
     SDL_EventState(SDL_ACTIVEEVENT, SDL_IGNORE);
-    SDL_EventState(SDL_MOUSEMOTION, SDL_IGNORE);
     SDL_EventState(SDL_SYSWMEVENT, SDL_IGNORE);
     SDL_EventState(SDL_USEREVENT, SDL_IGNORE);
 
@@ -131,6 +130,10 @@ int sdl_default_handle_event(SDL_Event *
     case SDL_VIDEOEXPOSE:
         return VO_EVENT_EXPOSE;
 
+    case SDL_MOUSEMOTION:
+        vo_mouse_movement(event->motion.x, event->motion.y);
+        break;
+
     case SDL_MOUSEBUTTONDOWN:
         if (!vo_nomouse_input)
             mplayer_put_key((MOUSE_BTN0 + event->button.button - 1) | MP_KEY_DOWN);


More information about the MPlayer-cvslog mailing list