summaryrefslogtreecommitdiff
path: root/src/termhooks.h
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2021-12-02 10:27:24 +0800
committerPo Lu <luangruo@yahoo.com>2021-12-02 10:27:24 +0800
commit5001f4f91b9a959ddc345de36153689174df67a9 (patch)
tree402344e7f4e0625909ac461e0ef7692fdff4acdb /src/termhooks.h
parenta4ff841154632da36ccb1bd01ea4e509465a692b (diff)
downloademacs-5001f4f91b9a959ddc345de36153689174df67a9.tar.gz
Add `touch-end' event type
* etc/NEWS: * doc/lispref/commands.texi (Misc Events): Document new `touch-end' event type. * lisp/bindings.el: Ignore touch-end events by default. * src/keyboard.c (make_lispy_event): Add support for TOUCH_END_EVENT events. (syms_of_keyboard): New symbol `touch-end'. * src/termhooks.h (enum event_kind): New member `TOUCH_END_EVENT'. * src/xterm.c (handle_one_xevent): Send touch-end events when appropriate.
Diffstat (limited to 'src/termhooks.h')
-rw-r--r--src/termhooks.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/termhooks.h b/src/termhooks.h
index 1cf9863f3a1..f64c19e0397 100644
--- a/src/termhooks.h
+++ b/src/termhooks.h
@@ -267,6 +267,13 @@ enum event_kind
/* File or directory was changed. */
, FILE_NOTIFY_EVENT
#endif
+
+ /* Either the mouse wheel has been released without it being
+ clicked, or the user has lifted his finger from a touchpad.
+
+ In the future, this may take into account other multi-touch
+ events generated from touchscreens and such. */
+ , TOUCH_END_EVENT
};
/* Bit width of an enum event_kind tag at the start of structs and unions. */