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
This commit is contained in:
Frediano Ziglio
2016-04-21 14:30:58 +01:00
committed by Matthias Clasen
parent c081ca2d4c
commit cf14fea5a8
10 changed files with 49 additions and 0 deletions

View File

@ -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__ */