X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fbinarycontrol.h;h=851c6127f08006a11731e90ff037bd8b00c79344;hb=7d2b4349289578b8e7f322186a1f251684ddeb01;hp=fafa58537175cc19610742a45de9e805ef175dc1;hpb=c9626e6953c16efc66575eff80c4c0de2f739041;p=libs%2Fgui.git diff --git a/source/input/binarycontrol.h b/source/input/binarycontrol.h index fafa585..851c612 100644 --- a/source/input/binarycontrol.h +++ b/source/input/binarycontrol.h @@ -8,7 +8,8 @@ namespace Input { /** A control with two possible states. Button state is mapped directly. An axis -is considered to be active when its value is within 10% of the end of the axis. +is considered to be active when its value is above a threshold (0.5 by +default). */ class BinaryControl: public Control { @@ -25,10 +26,8 @@ public: BinaryControl(const ControlSource &); BinaryControl(Device &, ControlSrcType, unsigned); - /** - Sets the threshold between states for axis sources. No effect on button - sources - */ + /** Sets the threshold between states for axis sources. No effect on button + sources */ void set_threshold(float); bool get_state() const { return state; }