]> git.tdb.fi Git - libs/gui.git/blob - source/keyboard.h
Add names for input devices
[libs/gui.git] / source / keyboard.h
1 /* $Id$
2
3 This file is part of libmspgbase
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GBASE_KEYBOARD_H_
9 #define MSP_GBASE_KEYBOARD_H_
10
11 #include "inputdevice.h"
12 #include "window.h"
13
14 namespace Msp {
15 namespace Input {
16
17 class Keyboard: public Device
18 {
19 private:
20         Graphics::Window &window;
21
22 public:
23         Keyboard(Graphics::Window &);
24
25         virtual std::string get_button_name(unsigned) const;
26 private:
27         void key_press(unsigned, unsigned, unsigned);
28         void key_release(unsigned, unsigned);
29 };
30
31 } // namespace Input
32 } // namespace Msp
33
34 #endif