X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fhub.h;h=aadfcd7f5b0a87752b9e623d354f29bcf0403ec5;hb=d7686e3867e3c68cec0d3767a21f9d2408383085;hp=b89196ecae793a5b9704e506dc6063263e1259b1;hpb=f01fa56a13100ed04c94c9d8b17fbdcf0f0a8bad;p=libs%2Fgui.git diff --git a/source/input/hub.h b/source/input/hub.h index b89196e..aadfcd7 100644 --- a/source/input/hub.h +++ b/source/input/hub.h @@ -3,6 +3,7 @@ #include #include +#include #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 devices; @@ -23,8 +24,11 @@ public: /// Attaches an input device to the hub. void attach(Device &dev); - virtual std::string get_button_name(unsigned) const; - virtual std::string get_axis_name(unsigned) const; + Device *find_subdevice(DeviceType, unsigned = 0) override; + Device *find_subdevice(const std::string &) override; + + 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);