1 #ifndef MSP_INPUT_KEYBOARD_H_
2 #define MSP_INPUT_KEYBOARD_H_
4 #include <msp/graphics/window.h>
5 #include <msp/stringcodec/ustring.h>
12 Adapts key events from a window to the abstracted input framework. Key codes
13 are translated to platform-independent values. See keys.h for a list.
15 class Keyboard: public Device
18 sigc::signal<bool, StringCodec::unichar>::accumulated<EventAccumulator> signal_character;
21 Graphics::Window &window;
24 Keyboard(Graphics::Window &);
27 virtual std::string get_button_name(unsigned) const;
29 void input_event(const Graphics::Window::Event &);