Skip to content

Commit

Permalink
Merge pull request #2150 from jhsrennie/keylayout
Browse files Browse the repository at this point in the history
Remove code loading US keyboard layout
  • Loading branch information
jmarshallnz committed Jan 31, 2013
2 parents fbc7113 + 9d6b5ab commit 68faea5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions xbmc/windowing/windows/WinEventsWin32.cpp
Expand Up @@ -57,7 +57,6 @@ HWND g_hWnd = NULL;
#define EXTKEYPAD(keypad) ((scancode & 0x100)?(mvke):(keypad)) #define EXTKEYPAD(keypad) ((scancode & 0x100)?(mvke):(keypad))


static XBMCKey VK_keymap[XBMCK_LAST]; 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 } }; static GUID USB_HID_GUID = { 0x4D1E55B2, 0xF16F, 0x11CF, { 0x88, 0xCB, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30 } };


Expand All @@ -80,10 +79,6 @@ void DIB_InitOSKeymap()


GetKeyboardLayoutName(current_layout); GetKeyboardLayoutName(current_layout);


hLayoutUS = LoadKeyboardLayout("00000409", KLF_NOTELLSHELL);
if (!hLayoutUS)
hLayoutUS = GetKeyboardLayout(0);

LoadKeyboardLayout(current_layout, KLF_ACTIVATE); LoadKeyboardLayout(current_layout, KLF_ACTIVATE);


/* Map the VK keysyms */ /* Map the VK keysyms */
Expand Down Expand Up @@ -237,10 +232,6 @@ void DIB_InitOSKeymap()


static int XBMC_MapVirtualKey(int scancode, int vkey) 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); int mvke = MapVirtualKeyEx(scancode & 0xFF, 1, NULL);


switch(vkey) switch(vkey)
Expand Down

0 comments on commit 68faea5

Please sign in to comment.