X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fkeyboard.h;h=30ec39c139b74d0b8f32a98cedf5dd765510c406;hb=6222d13e2790bdaa1013444f1221841397834cdd;hp=822de31df55403e6ebc1211b402af297722b4822;hpb=5d688fbf457b1f4d3bebde431a7f58c898be584c;p=libs%2Fgui.git diff --git a/source/input/keyboard.h b/source/input/keyboard.h index 822de31..30ec39c 100644 --- a/source/input/keyboard.h +++ b/source/input/keyboard.h @@ -1,6 +1,7 @@ #ifndef MSP_INPUT_KEYBOARD_H_ #define MSP_INPUT_KEYBOARD_H_ +#include #include #include #include "device.h" @@ -12,18 +13,19 @@ namespace Input { Adapts key events from a window to the abstracted input framework. Key codes are translated to platform-independent values. See keys.h for a list. */ -class Keyboard: public Device +class Keyboard: public Device, public sigc::trackable { public: - sigc::signal signal_character; + sigc::signal::accumulated signal_character; private: Graphics::Window &window; public: Keyboard(Graphics::Window &); + ~Keyboard(); - virtual std::string get_button_name(unsigned) const; + std::string get_button_name(unsigned) const override; private: void input_event(const Graphics::Window::Event &); };