]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/keyboard.h
Add decorations for things which should be exported from the library
[libs/gui.git] / source / input / keyboard.h
index babdf9ac97dfcc283877b19e00f2ec26e7261652..9048d520ece556971c57ec68b9761b3304fbe3d4 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef MSP_INPUT_KEYBOARD_H_
 #define MSP_INPUT_KEYBOARD_H_
 
+#include <sigc++/trackable.h>
+#include <msp/graphics/mspgui_api.h>
 #include <msp/graphics/window.h>
 #include <msp/stringcodec/ustring.h>
 #include "device.h"
@@ -12,7 +14,7 @@ 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 MSPGUI_API Keyboard: public Device, public sigc::trackable
 {
 public:
        sigc::signal<bool, StringCodec::unichar>::accumulated<EventAccumulator> signal_character;
@@ -22,8 +24,9 @@ private:
 
 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 &);
 };