]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/keyboard.cpp
Header updates
[libs/gui.git] / source / input / keyboard.cpp
index 324ec802fca57ba581d5063a0832f81fbe660926..344048e802b43638df33ba97a4bd0f9059e7e869 100644 (file)
@@ -3,8 +3,8 @@
 #else
 #include <X11/Xlib.h>
 #endif
-#include <msp/strings/formatter.h>
-#include "../gbase/display.h"
+#include <msp/gbase/display.h>
+#include <msp/strings/format.h>
 #include "keyboard.h"
 #include "keys.h"
 
@@ -16,7 +16,7 @@ namespace Input {
 Keyboard::Keyboard(Graphics::EventSource &s):
        source(s)
 {
-       name="Keyboard";
+       name = "Keyboard";
 
        buttons.resize(N_KEYS_, false);
 
@@ -29,13 +29,13 @@ std::string Keyboard::get_button_name(unsigned btn) const
        if(btn==0)
                return "None";
 #ifndef WIN32
-       const char *str=XKeysymToString(key_to_sys(btn));
+       const char *str = XKeysymToString(key_to_sys(btn));
        if(!str)
                return format("Key %d", btn);
        return str;
 #else
        char buf[128];
-       unsigned scan=MapVirtualKey(key_to_sys(btn), MAPVK_VK_TO_VSC);
+       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;