[Mplayer-cvslog] CVS: main/libvo vo_directx.c,1.36,1.37

Joey Parrish CVS syncmail at mplayerhq.hu
Fri Aug 27 00:15:29 CEST 2004


CVS change done by Joey Parrish CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv25803/libvo

Modified Files:
	vo_directx.c 
Log Message:
added "xbutton" support for 4-5 button mice


Index: vo_directx.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_directx.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- vo_directx.c	24 Aug 2004 11:02:12 -0000	1.36
+++ vo_directx.c	26 Aug 2004 22:15:26 -0000	1.37
@@ -35,6 +35,12 @@
 #include "aspect.h"
 #include "geometry.h"
 
+#ifndef WM_XBUTTONDOWN
+# define WM_XBUTTONDOWN    0x020B
+# define WM_XBUTTONUP      0x020C
+# define WM_XBUTTONDBLCLK  0x020D
+#endif
+
 static LPDIRECTDRAW7        g_lpdd = NULL;          //DirectDraw Object
 static LPDIRECTDRAWSURFACE7  g_lpddsPrimary = NULL;  //Primary Surface: viewport through the Desktop
 static LPDIRECTDRAWSURFACE7  g_lpddsOverlay = NULL;  //Overlay Surface
@@ -907,6 +913,16 @@
 				mplayer_put_key(MOUSE_BTN4);
 			break;
 		}
+        case WM_XBUTTONDOWN:
+		{
+			if (vo_nomouse_input)
+				break;
+			if (HIWORD(wParam) == 1)
+				mplayer_put_key(MOUSE_BTN5);
+			else
+				mplayer_put_key(MOUSE_BTN6);
+			break;
+		}
 		
     }
 	return DefWindowProc(hWnd, message, wParam, lParam);




More information about the MPlayer-cvslog mailing list