X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finputhub.h;h=c66ae98d71ce6a132f0600ec420e56f54100c681;hb=77d8b98374ab07be0d14c9c88502c6a803041040;hp=b20fd43468fffc093d03e043bbc4d105d6fe60e3;hpb=61eeb96535d1575ca0cf698d833c0ddfc7ae0f50;p=libs%2Fgui.git diff --git a/source/inputhub.h b/source/inputhub.h index b20fd43..c66ae98 100644 --- a/source/inputhub.h +++ b/source/inputhub.h @@ -23,6 +23,8 @@ protected: std::vector devices; public: + Hub(); + /** Attaches an input device to the hub. @@ -31,6 +33,8 @@ public: @return Index of the device within the hub */ unsigned attach(Device &dev); + + virtual std::string get_button_name(unsigned) const; protected: void button_press(unsigned, unsigned); void button_release(unsigned, unsigned);