[MPlayer-cvslog] CVS: main/input input.c, 1.127, 1.128 mouse.h, 1.2, 1.3

Joey Parrish CVS syncmail at mplayerhq.hu
Fri Nov 11 14:25:51 CET 2005


CVS change done by Joey Parrish CVS

Update of /cvsroot/mplayer/main/input
In directory mail:/var2/tmp/cvs-serv1973

Modified Files:
	input.c mouse.h 
Log Message:
Add double-click mouse events.

Index: input.c
===================================================================
RCS file: /cvsroot/mplayer/main/input/input.c,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -r1.127 -r1.128
--- input.c	10 Nov 2005 22:25:54 -0000	1.127
+++ input.c	11 Nov 2005 13:25:48 -0000	1.128
@@ -204,6 +204,16 @@
   { MOUSE_BTN7, "MOUSE_BTN7" },
   { MOUSE_BTN8, "MOUSE_BTN8" },
   { MOUSE_BTN9, "MOUSE_BTN9" },
+  { MOUSE_BTN0_DBL, "MOUSE_BTN0_DBL" },
+  { MOUSE_BTN1_DBL, "MOUSE_BTN1_DBL" },
+  { MOUSE_BTN2_DBL, "MOUSE_BTN2_DBL" },
+  { MOUSE_BTN3_DBL, "MOUSE_BTN3_DBL" },
+  { MOUSE_BTN4_DBL, "MOUSE_BTN4_DBL" },
+  { MOUSE_BTN5_DBL, "MOUSE_BTN5_DBL" },
+  { MOUSE_BTN6_DBL, "MOUSE_BTN6_DBL" },
+  { MOUSE_BTN7_DBL, "MOUSE_BTN7_DBL" },
+  { MOUSE_BTN8_DBL, "MOUSE_BTN8_DBL" },
+  { MOUSE_BTN9_DBL, "MOUSE_BTN9_DBL" },
   { JOY_AXIS1_MINUS, "JOY_UP" },
   { JOY_AXIS1_PLUS, "JOY_DOWN" },
   { JOY_AXIS0_MINUS, "JOY_LEFT" },

Index: mouse.h
===================================================================
RCS file: /cvsroot/mplayer/main/input/mouse.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- mouse.h	11 Feb 2002 11:42:08 -0000	1.2
+++ mouse.h	11 Nov 2005 13:25:48 -0000	1.3
@@ -11,3 +11,15 @@
 #define MOUSE_BTN7 (MOUSE_BASE+7)
 #define MOUSE_BTN8 (MOUSE_BASE+8)
 #define MOUSE_BTN9 (MOUSE_BASE+9)
+
+#define MOUSE_BASE_DBL (0x300|MP_NO_REPEAT_KEY)
+#define MOUSE_BTN0_DBL (MOUSE_BASE_DBL+0)
+#define MOUSE_BTN1_DBL (MOUSE_BASE_DBL+1)
+#define MOUSE_BTN2_DBL (MOUSE_BASE_DBL+2)
+#define MOUSE_BTN3_DBL (MOUSE_BASE_DBL+3)
+#define MOUSE_BTN4_DBL (MOUSE_BASE_DBL+4)
+#define MOUSE_BTN5_DBL (MOUSE_BASE_DBL+5)
+#define MOUSE_BTN6_DBL (MOUSE_BASE_DBL+6)
+#define MOUSE_BTN7_DBL (MOUSE_BASE_DBL+7)
+#define MOUSE_BTN8_DBL (MOUSE_BASE_DBL+8)
+#define MOUSE_BTN9_DBL (MOUSE_BASE_DBL+9)




More information about the MPlayer-cvslog mailing list