X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fhub.h;h=8ec2fad7fcb3dd60af82a5f6dbab52c28a7571c3;hb=33420ec807b0d06adff29cbd3a49e208f11d9f43;hp=4385f27742e83588e59cf686b88a5dd653d33bdc;hpb=999ca92aa9ee10585c0b2094d84364159253982f;p=libs%2Fgui.git diff --git a/source/input/hub.h b/source/input/hub.h index 4385f27..8ec2fad 100644 --- a/source/input/hub.h +++ b/source/input/hub.h @@ -1,12 +1,5 @@ -/* $Id$ - -This file is part of libmspgbase -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifndef MSP_GBASE_INPUTHUB_H_ -#define MSP_GBASE_INPUTHUB_H_ +#ifndef MSP_INPUT_INPUTHUB_H_ +#define MSP_INPUT_INPUTHUB_H_ #include "device.h" @@ -25,16 +18,12 @@ protected: public: Hub(); - /** - Attaches an input device to the hub. - - @param dev Device to attach - - @return Index of the device within the hub - */ + /** Attaches an input device to the hub. Returns the index of the device + within the hub. */ unsigned attach(Device &dev); virtual std::string get_button_name(unsigned) const; + virtual std::string get_axis_name(unsigned) const; protected: void button_press(unsigned, unsigned); void button_release(unsigned, unsigned);