]> git.tdb.fi Git - libs/gltk.git/blob - source/systemkeyboardinput.h
Add API declarations
[libs/gltk.git] / source / systemkeyboardinput.h
1 #ifndef MSP_GLTK_SYSTEMKEYBOARDINPUT_H_
2 #define MSP_GLTK_SYSTEMKEYBOARDINPUT_H_
3
4 #include <msp/input/keyboard.h>
5 #include "inputmethod.h"
6 #include "mspgltk_api.h"
7
8 namespace Msp {
9 namespace GLtk {
10
11 class MSPGLTK_API SystemKeyboardInput: public InputMethod, public sigc::trackable
12 {
13 private:
14         Input::Keyboard &keyboard;
15         unsigned modifier_state;
16
17 public:
18         SystemKeyboardInput(Root &, Input::Keyboard &);
19
20 private:
21         bool key_press(unsigned);
22         bool key_release(unsigned);
23         bool character(StringCodec::unichar);
24 };
25
26 } // namespace GLtk
27 } // namespace Msp
28
29 #endif