X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fdevice.h;fp=source%2Finput%2Fdevice.h;h=ea41162bb2afa8aa7417f2096f08348a504126dd;hb=daf317db7a79a4c92880042125814ca942c3a6fa;hp=d1c96f23be04e890d56755bc2ef55b4043c5aa8b;hpb=fcd5f24311fcfe772825a75678e038749401a9be;p=libs%2Fgui.git diff --git a/source/input/device.h b/source/input/device.h index d1c96f2..ea41162 100644 --- a/source/input/device.h +++ b/source/input/device.h @@ -17,8 +17,8 @@ namespace Input { /** 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 -value, with range depending on the device. +buttons and axes. Buttons are either on or off. Axes have a floating point +value in the range [-1, 1]. */ class Device { @@ -31,8 +31,6 @@ protected: std::string name; std::vector buttons; std::vector axes; - float axis_threshold; - float axis_dead_zone; Device() { } public: @@ -40,7 +38,6 @@ public: const std::string &get_name() const { return name; } bool get_button_state(unsigned) const; float get_axis_value(unsigned) const; - float get_axis_threshold() const { return axis_threshold; } virtual std::string get_button_name(unsigned) const; virtual std::string get_axis_name(unsigned) const;