]> git.tdb.fi Git - libs/gltk.git/blob - source/systemkeyboardinput.h
Add an input method subsystem
[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
7 namespace Msp {
8 namespace GLtk {
9
10 class SystemKeyboardInput: public InputMethod, public sigc::trackable
11 {
12 private:
13         Input::Keyboard &keyboard;
14
15 public:
16         SystemKeyboardInput(Root &, Input::Keyboard &);
17
18 private:
19         bool key_press(unsigned);
20         bool key_release(unsigned);
21         bool character(StringCodec::unichar);
22 };
23
24 } // namespace GLtk
25 } // namespace Msp
26
27 #endif