3 This file is part of libmspgbase
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GBASE_KEYBOARD_H_
9 #define MSP_GBASE_KEYBOARD_H_
12 #include "../gbase/window.h"
18 Adapts key events from a window to the abstracted input framework. Key codes
19 are translated to platform-independent values. See keys.h for a list.
21 class Keyboard: public Device
24 Graphics::Window &window;
27 Keyboard(Graphics::Window &);
29 virtual std::string get_button_name(unsigned) const;
31 void key_press(unsigned, unsigned, unsigned);
32 void key_release(unsigned, unsigned);