]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/hub.h
Inherit input devices using Window::signal_input_event from sigc::trackable
[libs/gui.git] / source / input / hub.h
index 8d41bcee41393bc0314825db0c44b1fc2b65fc61..31eeb94bf5dfb220c793d73d6cff533b345204e5 100644 (file)
@@ -2,6 +2,7 @@
 #define MSP_INPUT_INPUTHUB_H_
 
 #include <map>
+#include <sigc++/trackable.h>
 #include "device.h"
 
 namespace Msp {
@@ -11,7 +12,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
+class Hub: public Device, public sigc::trackable
 {
 protected:
        std::map<unsigned, Device *> devices;