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>
		
			
				
	
	
		
			19 lines
		
	
	
		
			340 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			340 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * Win32 keyboard hook stubs
 | 
						|
 *
 | 
						|
 * This work is licensed under the terms of the GNU GPL, version 2 or
 | 
						|
 * (at your option) any later version.  See the COPYING file in the
 | 
						|
 * top-level directory.
 | 
						|
 */
 | 
						|
 | 
						|
#include "qemu/osdep.h"
 | 
						|
#include "ui/win32-kbd-hook.h"
 | 
						|
 | 
						|
void win32_kbd_set_window(void *hwnd)
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
void win32_kbd_set_grab(bool grab)
 | 
						|
{
 | 
						|
}
 |