/* $Id$
This file is part of libmspgbase
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2007-2008 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
+#ifdef WIN32
+#include <windows.h>
+#else
+#include <X11/Xlib.h>
+#endif
#include <msp/strings/formatter.h>
#include "../gbase/display.h"
#include "keyboard.h"
#include "keys.h"
+#define MAPVK_VK_TO_VSC 0
+
namespace Msp {
namespace Input {
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;