X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fdevice.h;h=4544776ac3a36f1f6b36d7dfe0d7a79cdaacb232;hb=7302a061c57602203895b616bf54d96269c677c6;hp=be708e2636a2ae88010c5d9ba79a31b0abf2835b;hpb=75a3f0fd4152a71aefec72cb053846646071af03;p=libs%2Fgui.git diff --git a/source/input/device.h b/source/input/device.h index be708e2..4544776 100644 --- a/source/input/device.h +++ b/source/input/device.h @@ -5,6 +5,7 @@ #include #include #include +#include namespace Msp { namespace Input { @@ -68,6 +69,8 @@ public: DeviceType get_type() const { return type; } const std::string &get_name() const { return name; } + virtual Device *find_subdevice(DeviceType, unsigned = 0); + virtual Device *find_subdevice(const std::string &); bool get_button_state(unsigned) const; float get_axis_value(unsigned) const; @@ -78,6 +81,10 @@ protected: void set_axis_value(unsigned, float, bool); }; + +void operator>>(const LexicalConverter &, DeviceType &); +void operator<<(LexicalConverter &, DeviceType); + } // namespace Input } // namespace Msp