summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2021-12-16 15:15:28 +0800
committerPo Lu <luangruo@yahoo.com>2021-12-17 14:20:05 +0800
commitf6339412eebdc027b00263ae2b5c38a029e2f7b4 (patch)
tree6044818b1dcbca999f2a14338d3561f242a29588 /etc
parent32d12840e666d1d07c92cc31f0b12965451f7726 (diff)
downloademacs-f6339412eebdc027b00263ae2b5c38a029e2f7b4.tar.gz
Add support for touchscreen events generated by XInput 2
* doc/lispref/commands.texi (Input Events): Add "Touchscreen Events" to menu. (Touchscreen Events): New node. * etc/NEWS: Announce new event types. * src/keyboard.c (make_lispy_event): Handle touchscreen events. (syms_of_keyboard): New symbols `touchscreen-begin', `touchscreen-end' and `touchscreen-update'. * src/termhooks.h (enum event_kind): New touchscreen events. * src/xfns.c (setup_xi_event_mask): Set up touch event mask if appropriate. (x_window) [USE_GTK]: Call `setup_xi_event_mask'. * src/xterm.c (x_free_xi_devices): Free touchpoints. (x_init_master_valuators): Handle all devices and set master and touch mode flags appropriately. (xi_reset_scroll_valuators_for_device_id): (x_get_scroll_valuator_delta): Ignore slave devices. (xi_link_touch_point): (xi_unlink_touch_point): (xi_find_touch_point): New functions. (handle_one_xevent): Handle XI touch events and events from non-master devices. * src/xterm.h (struct xi_touch_point_t): New structure. (struct xi_device_t): Add touchpoints field.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index be8b1959f11..61e1cd12af9 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1162,6 +1162,12 @@ temporary transition aid for Emacs 27, has served its purpose.
month, day, or time. For example, (date-to-time "2021-12-04") now
assumes a time of 00:00 instead of signaling an error.
++++
+** New events for taking advantage of touchscreen devices.
+The events 'touchscreen-down', 'touchscreen-update' and
+'touchscreen-end' have been added to take better advantage of
+touch-capable display panels.
+
* Changes in Emacs 29.1 on Non-Free Operating Systems