[Mplayer-cvslog] CVS: main/libvo vo_directx.c,1.25,1.26
Sascha Sommer CVS
syncmail at mplayerhq.hu
Sat Mar 13 17:37:15 CET 2004
CVS change done by Sascha Sommer CVS
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv18102/libvo
Modified Files:
vo_directx.c
Log Message:
mouse support by Nehal Mistry <nehalmistry at gmx.net>
Index: vo_directx.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_directx.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- vo_directx.c 29 Feb 2004 20:33:07 -0000 1.25
+++ vo_directx.c 13 Mar 2004 16:37:12 -0000 1.26
@@ -30,6 +30,7 @@
#include "fastmemcpy.h"
#include "../input/input.h"
#include "../osdep/keycodes.h"
+#include "../input/mouse.h"
#include "../mp_msg.h"
#include "aspect.h"
#include "geometry.h"
@@ -908,6 +909,35 @@
mplayer_put_key(wParam);
break;
}
+ case WM_LBUTTONDOWN:
+ {
+ if (!vo_nomouse_input)
+ mplayer_put_key(MOUSE_BTN0);
+ break;
+ }
+ case WM_MBUTTONDOWN:
+ {
+ if (!vo_nomouse_input)
+ mplayer_put_key(MOUSE_BTN1);
+ break;
+ }
+ case WM_RBUTTONDOWN:
+ {
+ if (!vo_nomouse_input)
+ mplayer_put_key(MOUSE_BTN2);
+ break;
+ }
+ case WM_MOUSEWHEEL:
+ {
+ if (vo_nomouse_input)
+ break;
+ int x = GET_WHEEL_DELTA_WPARAM(wParam);
+ if (x > 0)
+ mplayer_put_key(MOUSE_BTN3);
+ else
+ mplayer_put_key(MOUSE_BTN4);
+ break;
+ }
}
return DefWindowProc(hWnd, message, wParam, lParam);
More information about the MPlayer-cvslog
mailing list