mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
gdk: Add GDK_TOUCHPAD_GESTURE_MASK to GdkEventMask
Users will need to manually select on this in order to receive gesture events.
This commit is contained in:
parent
a3b402a949
commit
8c2b3930da
@ -440,6 +440,7 @@ typedef enum
|
||||
GDK_SCROLL_MASK = 1 << 21,
|
||||
GDK_TOUCH_MASK = 1 << 22,
|
||||
GDK_SMOOTH_SCROLL_MASK = 1 << 23,
|
||||
GDK_TOUCHPAD_GESTURE_MASK = 1 << 24,
|
||||
GDK_ALL_EVENTS_MASK = 0xFFFFFE
|
||||
} GdkEventMask;
|
||||
|
||||
|
@ -7565,7 +7565,9 @@ static const guint type_masks[] = {
|
||||
GDK_TOUCH_MASK, /* GDK_TOUCH_BEGIN = 37 */
|
||||
GDK_TOUCH_MASK, /* GDK_TOUCH_UPDATE = 38 */
|
||||
GDK_TOUCH_MASK, /* GDK_TOUCH_END = 39 */
|
||||
GDK_TOUCH_MASK /* GDK_TOUCH_CANCEL = 40 */
|
||||
GDK_TOUCH_MASK, /* GDK_TOUCH_CANCEL = 40 */
|
||||
GDK_TOUCHPAD_GESTURE_MASK, /* GDK_TOUCHPAD_SWIPE = 41 */
|
||||
GDK_TOUCHPAD_GESTURE_MASK, /* GDK_TOUCHPAD_PINCH = 42 */
|
||||
};
|
||||
G_STATIC_ASSERT (G_N_ELEMENTS (type_masks) == GDK_EVENT_LAST);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user