#define EXTKEYPAD(keypad) ((scancode & 0x100)?(mvke):(keypad))
static XBMCKey VK_keymap[XBMCK_LAST];
-static HKL hLayoutUS = NULL;
static GUID USB_HID_GUID = { 0x4D1E55B2, 0xF16F, 0x11CF, { 0x88, 0xCB, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30 } };
GetKeyboardLayoutName(current_layout);
- hLayoutUS = LoadKeyboardLayout("00000409", KLF_NOTELLSHELL);
- if (!hLayoutUS)
- hLayoutUS = GetKeyboardLayout(0);
-
LoadKeyboardLayout(current_layout, KLF_ACTIVATE);
/* Map the VK keysyms */
static int XBMC_MapVirtualKey(int scancode, int vkey)
{
-// It isn't clear why the US keyboard layout was being used. This causes
-// problems with e.g. the \ key. I have provisionally switched the code
-// to use the Windows layout.
-// int mvke = MapVirtualKeyEx(scancode & 0xFF, 1, hLayoutUS);
int mvke = MapVirtualKeyEx(scancode & 0xFF, 1, NULL);
switch(vkey)