Re trac ticket 14026 - remove code loading US keyboard layout
authorJohn Rennie <john.rennie@ratsauce.co.uk>
Thu, 31 Jan 2013 10:59:36 +0000 (10:59 +0000)
committerJohn Rennie <john.rennie@ratsauce.co.uk>
Thu, 31 Jan 2013 10:59:36 +0000 (10:59 +0000)
xbmc/windowing/windows/WinEventsWin32.cpp

index c6383e3..f9873f8 100644 (file)
@@ -57,7 +57,6 @@ HWND g_hWnd = NULL;
 #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 } };
 
@@ -80,10 +79,6 @@ void DIB_InitOSKeymap()
 
   GetKeyboardLayoutName(current_layout);
 
-  hLayoutUS = LoadKeyboardLayout("00000409", KLF_NOTELLSHELL);
-  if (!hLayoutUS)
-    hLayoutUS = GetKeyboardLayout(0);
-
   LoadKeyboardLayout(current_layout, KLF_ACTIVATE);
 
   /* Map the VK keysyms */
@@ -237,10 +232,6 @@ void DIB_InitOSKeymap()
 
 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)