]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/hub.h
Add functions to look up subdevices of composite input devices
[libs/gui.git] / source / input / hub.h
index b89196ecae793a5b9704e506dc6063263e1259b1..55d58765f1d705dabeeec7ff5eb028a4f65a46b8 100644 (file)
@@ -23,6 +23,9 @@ 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 &);
+
        virtual std::string get_button_name(unsigned) const;
        virtual std::string get_axis_name(unsigned) const;
 protected: