# HG changeset patch # User joey # Date 1131715548 0 # Node ID 62d979592493065c605b0103b5b2f743023da210 # Parent 78ac0dd386c0868aacfa5d69137b677f6606e6d3 Add double-click mouse events. diff -r 78ac0dd386c0 -r 62d979592493 input/input.c --- 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" }, diff -r 78ac0dd386c0 -r 62d979592493 input/mouse.h --- 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)