1 #ifndef MSP_INPUT_KEYBOARD_H_
2 #define MSP_INPUT_KEYBOARD_H_
4 #include <msp/graphics/window.h>
11 Adapts key events from a window to the abstracted input framework. Key codes
12 are translated to platform-independent values. See keys.h for a list.
14 class Keyboard: public Device
17 Graphics::EventSource &source;
20 Keyboard(Graphics::EventSource &);
22 virtual std::string get_button_name(unsigned) const;
24 void key_press(unsigned, unsigned, unsigned);
25 void key_release(unsigned, unsigned);