diff options
author | Volker RĂ¼melin <vr_qemu@t-online.de> | 2020-05-16 09:20:04 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-05-19 09:06:44 +0200 |
commit | 2df9f5718df7722924699a3754f99165e2f4ae35 (patch) | |
tree | c170cfdabe16d48cee73228963f97d4169e986dd /include/ui/win32-kbd-hook.h | |
parent | debe78ce14bf8f8940c2bdf3ef387505e9e035a9 (diff) | |
download | qemu-2df9f5718df7722924699a3754f99165e2f4ae35.zip qemu-2df9f5718df7722924699a3754f99165e2f4ae35.tar.gz qemu-2df9f5718df7722924699a3754f99165e2f4ae35.tar.bz2 |
ui/win32-kbd-hook: handle AltGr in a hook procedure
Import win32 keyboard hooking code from project spice-gtk. This
patch removes the extra left control key up/down input events
inserted by Windows for the right alt key up/down input events
with international keyboard layouts. Additionally there's some
code to grab the keyboard.
The next patches will use this code.
Only Windows needs this.
Signed-off-by: Volker RĂ¼melin <vr_qemu@t-online.de>
Message-id: 20200516072014.7766-1-vr_qemu@t-online.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui/win32-kbd-hook.h')
-rw-r--r-- | include/ui/win32-kbd-hook.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/ui/win32-kbd-hook.h b/include/ui/win32-kbd-hook.h new file mode 100644 index 0000000..4bd9f00 --- /dev/null +++ b/include/ui/win32-kbd-hook.h @@ -0,0 +1,14 @@ +/* + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + */ + +#ifndef UI_WIN32_KBD_HOOK_H +#define UI_WIN32_KBD_HOOK_H + +void win32_kbd_set_window(void *hwnd); +void win32_kbd_set_grab(bool grab); + +#endif |