summaryrefslogtreecommitdiff
path: root/src/termhooks.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-06-22 02:06:54 +0000
committerJim Blandy <jimb@redhat.com>1993-06-22 02:06:54 +0000
commitfbcd35bd72c1778817294cc160a84353fd864a9e (patch)
tree09c94a6596f26a5ee13e5dac4b87b6ed402661cc /src/termhooks.h
parent69b95560cde2119f7f3c3d5bd241bc7355bcf27d (diff)
downloademacs-fbcd35bd72c1778817294cc160a84353fd864a9e.tar.gz
emacs-fbcd35bd72c1778817294cc160a84353fd864a9e.tar.bz2
emacs-fbcd35bd72c1778817294cc160a84353fd864a9e.zip
* keyboard.c (make_lispy_event): Added detection of double-click
and triple-click events. (parse_modifiers_uncached, apply_modifiers_uncached): Same. (read_key_sequence): Coerce double-clicks to clicks, and triple-clicks to double-clicks or clicks, by analogy with drag events. (double_click_time): Added variable. * termhooks.h: Added multi-click event modifier bits.
Diffstat (limited to 'src/termhooks.h')
-rw-r--r--src/termhooks.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/termhooks.h b/src/termhooks.h
index a410038f5f6..53d48f254e6 100644
--- a/src/termhooks.h
+++ b/src/termhooks.h
@@ -286,10 +286,11 @@ struct input_event {
is a mouse click lacking the click and drag modifiers.
The window-system independent code turns all up_modifier events
- bits into either drag_modifier or click_modifier events. The
- click_modifier has no written representation in the names of the
- symbols used as event heads, but it does appear in the
- Qevent_symbol_components property of the event heads. */
+ bits into drag_modifier, click_modifier, double_modifier, or
+ triple_modifier events. The click_modifier has no written
+ representation in the names of the symbols used as event heads,
+ but it does appear in the Qevent_symbol_components property of the
+ event heads. */
enum {
up_modifier = 1, /* Only used on mouse buttons - always
turned into a click or a drag modifier
@@ -299,6 +300,8 @@ enum {
queue; it's only used internally by
the window-system-independent code. */
click_modifier= 8, /* See drag_modifier. */
+ double_modifier= 16, /* See drag_modifier. */
+ triple_modifier= 32, /* See drag_modifier. */
/* The next four modifier bits are used also in keyboard events at
the Lisp level.