locked
Keyboard Layout query

    Question

  • Hi,

     I am developing a game for Windows 8, and we are binding the actual key with an action. The problem is that WASD is ZQSD in a AZERTY keyboard. So I need to know wich layout the keyboard is using. Windows::Globalization::Language::CurrentInputMethodLanguageTag doesn't return that, I tried it by changing the keyboard layout but keeping the language, and, as expected, returns the language. How can you do this?

     Thanks!

    Note: We are using Windows::UI::Core::CoreWindow KeyDown event handler, its KeyEventArgs only give us VirtualKey code.
    Tuesday, December 04, 2012 1:04 PM

All replies