summaryrefslogtreecommitdiff
path: root/gdk/gdkevents.h
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2016-04-21 14:30:58 +0100
committerMatthias Clasen <mclasen@redhat.com>2016-04-21 22:35:47 -0400
commitcf14fea5a87f7a6c4e1c97081ad6b5cd27cc83b1 (patch)
treef7b64bf96f30f882799b20c93e1020968feee38b /gdk/gdkevents.h
parentc081ca2d4c589fb77e097ad5ee2a9978bd91d2ed (diff)
downloadgtk+-cf14fea5a87f7a6c4e1c97081ad6b5cd27cc83b1.tar.gz
Save scancode inside GdkEventPrivate
Windows save in hardware_keycode an information which is not so low level and some application require the hardware scancode. As Windows provides this information save it in GdkEventPrivate and provide a function to get this information. For no Windows system the function return the hardware_keycode instead. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> https://bugzilla.gnome.org/show_bug.cgi?id=765259
Diffstat (limited to 'gdk/gdkevents.h')
-rw-r--r--gdk/gdkevents.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h
index 3e7824f5cc..0fea302736 100644
--- a/gdk/gdkevents.h
+++ b/gdk/gdkevents.h
@@ -1451,6 +1451,9 @@ GDK_AVAILABLE_IN_3_22
void gdk_event_set_device_tool (GdkEvent *event,
GdkDeviceTool *tool);
+GDK_AVAILABLE_IN_3_22
+int gdk_event_get_scancode (GdkEvent *event);
+
G_END_DECLS
#endif /* __GDK_EVENTS_H__ */