]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/keyboard.h
Reorganize files to separate gbase and input
[libs/gui.git] / source / input / keyboard.h
diff --git a/source/input/keyboard.h b/source/input/keyboard.h
new file mode 100644 (file)
index 0000000..54479ea
--- /dev/null
@@ -0,0 +1,34 @@
+/* $Id$
+
+This file is part of libmspgbase
+Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#ifndef MSP_GBASE_KEYBOARD_H_
+#define MSP_GBASE_KEYBOARD_H_
+
+#include "device.h"
+#include "../gbase/window.h"
+
+namespace Msp {
+namespace Input {
+
+class Keyboard: public Device
+{
+private:
+       Graphics::Window &window;
+
+public:
+       Keyboard(Graphics::Window &);
+
+       virtual std::string get_button_name(unsigned) const;
+private:
+       void key_press(unsigned, unsigned, unsigned);
+       void key_release(unsigned, unsigned);
+};
+
+} // namespace Input
+} // namespace Msp
+
+#endif