1 #ifndef MSP_GBASE_KEYBOARD_H_
2 #define MSP_GBASE_KEYBOARD_H_
5 #include "../gbase/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);