[MPlayer-cvslog] CVS: main/libvo vo_directx.c,1.60,1.61

Joey Parrish CVS syncmail at mplayerhq.hu
Fri Nov 11 14:26:27 CET 2005


CVS change done by Joey Parrish CVS

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

Modified Files:
	vo_directx.c 
Log Message:
Generate double-click mouse events.

Index: vo_directx.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_directx.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- vo_directx.c	11 Nov 2005 13:22:01 -0000	1.60
+++ vo_directx.c	11 Nov 2005 13:26:24 -0000	1.61
@@ -976,6 +976,24 @@
 				mplayer_put_key(MOUSE_BTN2);
 			break;
 		}
+		case WM_LBUTTONDBLCLK:
+		{
+			if(!vo_nomouse_input)
+				mplayer_put_key(MOUSE_BTN0_DBL);
+			break;
+		}
+		case WM_MBUTTONDBLCLK:
+		{
+			if(!vo_nomouse_input)
+				mplayer_put_key(MOUSE_BTN1_DBL);
+			break;
+		}
+		case WM_RBUTTONDBLCLK:
+		{
+			if(!vo_nomouse_input)
+				mplayer_put_key(MOUSE_BTN2_DBL);
+			break;
+		}
         case WM_MOUSEWHEEL:
 		{
 			if (vo_nomouse_input)
@@ -997,6 +1015,16 @@
 				mplayer_put_key(MOUSE_BTN6);
 			break;
 		}
+        case WM_XBUTTONDBLCLK:
+		{
+			if (vo_nomouse_input)
+				break;
+			if (HIWORD(wParam) == 1)
+				mplayer_put_key(MOUSE_BTN5_DBL);
+			else
+				mplayer_put_key(MOUSE_BTN6_DBL);
+			break;
+		}
 		
     }
 	return DefWindowProc(hWnd, message, wParam, lParam);
@@ -1029,7 +1057,7 @@
     windowcolor = vo_colorkey;
     colorbrush = CreateSolidBrush(windowcolor);
     blackbrush = (HBRUSH)GetStockObject(BLACK_BRUSH);
-    wc.style         =  CS_HREDRAW | CS_VREDRAW;
+    wc.style         =  CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS;
     wc.lpfnWndProc   =  WndProc;
     wc.cbClsExtra    =  0;
     wc.cbWndExtra    =  0;




More information about the MPlayer-cvslog mailing list