]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/hub.h
Update .gitignore to include build products on Windows
[libs/gui.git] / source / input / hub.h
index 55d58765f1d705dabeeec7ff5eb028a4f65a46b8..aadfcd7f5b0a87752b9e623d354f29bcf0403ec5 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <vector>
 #include <sigc++/trackable.h>
+#include <msp/graphics/mspgui_api.h>
 #include "device.h"
 
 namespace Msp {
@@ -12,7 +13,7 @@ namespace Input {
 The Hub device collects events from multiple input devices and presents an
 aggregate of them.  Button and axis numbers are mapped to unique values.
 */
-class Hub: public Device, public sigc::trackable
+class MSPGUI_API Hub: public Device, public sigc::trackable
 {
 protected:
        std::vector<Device *> devices;
@@ -23,11 +24,11 @@ public:
        /// Attaches an input device to the hub.
        void attach(Device &dev);
 
-       virtual Device *find_subdevice(DeviceType, unsigned = 0);
-       virtual Device *find_subdevice(const std::string &);
+       Device *find_subdevice(DeviceType, unsigned = 0) override;
+       Device *find_subdevice(const std::string &) override;
 
-       virtual std::string get_button_name(unsigned) const;
-       virtual std::string get_axis_name(unsigned) const;
+       std::string get_button_name(unsigned) const override;
+       std::string get_axis_name(unsigned) const override;
 protected:
        void button_press(unsigned, unsigned);
        void button_release(unsigned, unsigned);