]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/device.h
Add conversions to/from string for key names and device types
[libs/gui.git] / source / input / device.h
index be708e2636a2ae88010c5d9ba79a31b0abf2835b..853ec96c902ebe4cdf82942822fa10563ab69849 100644 (file)
@@ -5,6 +5,7 @@
 #include <vector>
 #include <stdexcept>
 #include <sigc++/signal.h>
+#include <msp/strings/lexicalcast.h>
 
 namespace Msp {
 namespace Input {
@@ -78,6 +79,10 @@ protected:
        void set_axis_value(unsigned, float, bool);
 };
 
+
+void operator>>(const LexicalConverter &, DeviceType &);
+void operator<<(LexicalConverter &, DeviceType);
+
 } // namespace Input
 } // namespace Msp