diff --git a/docs/reference/gdk/gdk3-sections.txt b/docs/reference/gdk/gdk3-sections.txt index 05efa222b2..0ca8d48ddd 100644 --- a/docs/reference/gdk/gdk3-sections.txt +++ b/docs/reference/gdk/gdk3-sections.txt @@ -883,6 +883,7 @@ gdk_events_get_distance gdk_event_triggers_context_menu gdk_event_get_seat gdk_event_get_scancode +gdk_event_get_pointer_emulated gdk_event_handler_set diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index 94c18421cc..177ff27c0f 100644 --- a/gdk/gdkevents.c +++ b/gdk/gdkevents.c @@ -609,6 +609,17 @@ gdk_event_set_pointer_emulated (GdkEvent *event, } } +/** + * gdk_event_get_pointer_emulated: + * #event: a #GdkEvent + * + * Returns whether this event is an 'emulated' pointer event (typically + * from a touch event), as opposed to a real one. + * + * Returns: %TRUE if this event is emulated + * + * Since: 3.22 + */ gboolean gdk_event_get_pointer_emulated (GdkEvent *event) {