summaryrefslogtreecommitdiff
path: root/desktop/mouse.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/mouse.h')
-rw-r--r--desktop/mouse.h34
1 files changed, 21 insertions, 13 deletions
diff --git a/desktop/mouse.h b/desktop/mouse.h
index 042db23a9..9a3a16702 100644
--- a/desktop/mouse.h
+++ b/desktop/mouse.h
@@ -32,8 +32,8 @@ typedef enum {
* May be used to indicate
* hover or end of drag. */
- BROWSER_MOUSE_PRESS_1 = (1 << 0), /* button 1 pressed */
- BROWSER_MOUSE_PRESS_2 = (1 << 1), /* button 2 pressed */
+ BROWSER_MOUSE_PRESS_1 = (1 << 0), /* button 1 pressed */
+ BROWSER_MOUSE_PRESS_2 = (1 << 1), /* button 2 pressed */
/* note: click meaning is different for
* different front ends. On RISC OS, it
@@ -45,27 +45,35 @@ typedef enum {
* is released, if the operation wasn't
* a drag. */
- BROWSER_MOUSE_CLICK_1 = (1 << 2), /* button 1 clicked. */
- BROWSER_MOUSE_CLICK_2 = (1 << 3), /* button 2 clicked. */
+ BROWSER_MOUSE_CLICK_1 = (1 << 2), /* button 1 clicked. */
+ BROWSER_MOUSE_CLICK_2 = (1 << 3), /* button 2 clicked. */
- BROWSER_MOUSE_DOUBLE_CLICK = (1 << 4), /* button 1 double clicked */
+ BROWSER_MOUSE_DOUBLE_CLICK = (1 << 4), /* button double clicked */
+ BROWSER_MOUSE_TRIPLE_CLICK = (1 << 5), /* button triple clicked */
- BROWSER_MOUSE_DRAG_1 = (1 << 5), /* start of button 1 drag */
- BROWSER_MOUSE_DRAG_2 = (1 << 6), /* start of button 2 drag */
+ /* note: double and triple clicks are
+ * fired alongside a
+ * BROWSER_MOUSE_CLICK_[1|2]
+ * to indicate which button
+ * is used.
+ */
- BROWSER_MOUSE_DRAG_ON = (1 << 7), /* a drag operation was started
+ BROWSER_MOUSE_DRAG_1 = (1 << 6), /* start of button 1 drag */
+ BROWSER_MOUSE_DRAG_2 = (1 << 7), /* start of button 2 drag */
+
+ BROWSER_MOUSE_DRAG_ON = (1 << 8), /* a drag operation was started
* and a mouse button is still
* pressed */
- BROWSER_MOUSE_HOLDING_1 = (1 << 8), /* during button 1 drag */
- BROWSER_MOUSE_HOLDING_2 = (1 << 9), /* during button 2 drag */
+ BROWSER_MOUSE_HOLDING_1 = (1 << 9), /* during button 1 drag */
+ BROWSER_MOUSE_HOLDING_2 = (1 << 10), /* during button 2 drag */
- BROWSER_MOUSE_MOD_1 = (1 << 10), /* 1st modifier key pressed
+ BROWSER_MOUSE_MOD_1 = (1 << 11), /* 1st modifier key pressed
* (eg. Shift) */
- BROWSER_MOUSE_MOD_2 = (1 << 11), /* 2nd modifier key pressed
+ BROWSER_MOUSE_MOD_2 = (1 << 12), /* 2nd modifier key pressed
* (eg. Ctrl) */
- BROWSER_MOUSE_MOD_3 = (1 << 12) /* 3rd modifier key pressed
+ BROWSER_MOUSE_MOD_3 = (1 << 13) /* 3rd modifier key pressed
* (eg. Alt) */
} browser_mouse_state;