changeset 16974:62d979592493

Add double-click mouse events.
author joey
date Fri, 11 Nov 2005 13:25:48 +0000
parents 78ac0dd386c0
children 3876c807d36c
files input/input.c input/mouse.h
diffstat 2 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Fri Nov 11 13:22:01 2005 +0000
+++ b/input/input.c	Fri Nov 11 13:25:48 2005 +0000
@@ -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" },
--- a/input/mouse.h	Fri Nov 11 13:22:01 2005 +0000
+++ b/input/mouse.h	Fri Nov 11 13:25:48 2005 +0000
@@ -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)