X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsystemkeyboardinput.h;fp=source%2Fsystemkeyboardinput.h;h=ae988ca1aaccb4aac488b6e584c8ce727ec8afe2;hb=4b52d16bc895f9d969383d7a7d6a3558c1972cc5;hp=0000000000000000000000000000000000000000;hpb=6d73e04329fc3752552773e4d11d7374caf779f6;p=libs%2Fgltk.git diff --git a/source/systemkeyboardinput.h b/source/systemkeyboardinput.h new file mode 100644 index 0000000..ae988ca --- /dev/null +++ b/source/systemkeyboardinput.h @@ -0,0 +1,27 @@ +#ifndef MSP_GLTK_SYSTEMKEYBOARDINPUT_H_ +#define MSP_GLTK_SYSTEMKEYBOARDINPUT_H_ + +#include +#include "inputmethod.h" + +namespace Msp { +namespace GLtk { + +class SystemKeyboardInput: public InputMethod, public sigc::trackable +{ +private: + Input::Keyboard &keyboard; + +public: + SystemKeyboardInput(Root &, Input::Keyboard &); + +private: + bool key_press(unsigned); + bool key_release(unsigned); + bool character(StringCodec::unichar); +}; + +} // namespace GLtk +} // namespace Msp + +#endif