]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/keyboard.cpp
OpenGL can now be required as a package on all archs
[libs/gui.git] / source / input / keyboard.cpp
index 4372be4f42bd5fbcfc707a842eae1494511c9665..1d7bb659e4973944ff2cc7b6665ed089c1c7ddf8 100644 (file)
@@ -10,6 +10,8 @@ Distributed under the LGPL
 #include "keyboard.h"
 #include "keys.h"
 
+#define MAPVK_VK_TO_VSC 0
+
 namespace Msp {
 namespace Input {
 
@@ -35,7 +37,7 @@ std::string Keyboard::get_button_name(unsigned btn) const
        return str;
 #else
        char buf[128];
-       unsigned scan=MapVirtualKey(key_to_sys(btn), MAPVK_VK_TO_VCS);
+       unsigned scan=MapVirtualKey(key_to_sys(btn), MAPVK_VK_TO_VSC);
        if(!GetKeyNameText(scan<<16, buf, sizeof(buf)))
                return format("Key %d", btn);
        return buf;