summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator/functionconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'qfunctionconfigurator/functionconfig.h')
-rw-r--r--qfunctionconfigurator/functionconfig.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/qfunctionconfigurator/functionconfig.h b/qfunctionconfigurator/functionconfig.h
index 446c73ac..68ec2869 100644
--- a/qfunctionconfigurator/functionconfig.h
+++ b/qfunctionconfigurator/functionconfig.h
@@ -14,16 +14,19 @@
#include <QSettings>
#include <QMutex>
#include <vector>
+#include <limits>
#include "opentrack-compat/qcopyable-mutex.hpp"
class Map {
private:
static constexpr int value_count = 5000;
using num = float;
+ using integral = std::uint16_t;
+ static constexpr integral integral_max = std::numeric_limits<integral>::max();
struct State {
QList<QPointF> input;
- std::vector<num> data;
+ std::vector<integral> data;
};
int precision() const;
@@ -45,6 +48,7 @@ public:
{
setMaxInput(maxx);
setMaxOutput(maxy);
+ reload();
}
num getValue(num x);