X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fdevice.h;h=b42ed3fde4991feb8d87b05258831585db57efec;hb=69aaca13ae0949acf12056e390cbd1009a8487b2;hp=7df388b18c34f5f0d2dc1001ac61e27ae5b9afa8;hpb=f9ebab54c3debe98e108790be9c21f43f4de116f;p=libs%2Fgui.git diff --git a/source/input/device.h b/source/input/device.h index 7df388b..b42ed3f 100644 --- a/source/input/device.h +++ b/source/input/device.h @@ -3,11 +3,20 @@ #include #include +#include #include namespace Msp { namespace Input { +class device_not_available: public std::runtime_error +{ +public: + device_not_available(const std::string &w): std::runtime_error(w) { } + virtual ~device_not_available() throw() { } +}; + + /** Base class for input devices. Input devices have two types of controls: buttons and axes. Buttons are either on or off. Axes have a floating point