X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fsmoothcontrol.h;h=f16177b2b2ea0076dc176ab9b0f7da76ec747506;hb=84e5e859191eeca5cf8b58da29b5f369be25c93c;hp=78edbb3acd64a73b26a4ee9391c9b855b3ae5003;hpb=1023b38fa278cea71fba3d2881e1bfde930cd025;p=libs%2Fgui.git diff --git a/source/input/smoothcontrol.h b/source/input/smoothcontrol.h index 78edbb3..f16177b 100644 --- a/source/input/smoothcontrol.h +++ b/source/input/smoothcontrol.h @@ -34,9 +34,13 @@ public: /// Sets the dead zone value. Any value below this will be treated as 0. void set_dead_zone(float); - /// Sets the max-out threshold. Any value above this will be treated as 1. + /** Sets the max-out threshold. Any value above this will be treated as 1. + A negative value can be used to disable the threshold entirely. */ void set_threshold(float); + /// Sets dead zone and threshold in a single function call. + void set_range(float, float); + void pair(SmoothControl *ctrl); float get_value() const { return value; }