diff options
Diffstat (limited to 'common/rawaccel-base.hpp')
| -rw-r--r-- | common/rawaccel-base.hpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/common/rawaccel-base.hpp b/common/rawaccel-base.hpp index ac60ff0..6996164 100644 --- a/common/rawaccel-base.hpp +++ b/common/rawaccel-base.hpp @@ -13,19 +13,38 @@ namespace rawaccel { inline constexpr size_t MAX_DEV_ID_LEN = 200; + inline constexpr size_t LUT_CAPACITY = 1025; + enum class accel_mode { classic, jump, natural, - motivity, power, + motivity, noaccel }; + enum class table_mode { + off, + binlog, + linear + }; + + struct table_args { + table_mode mode = table_mode::off; + bool transfer = true; + unsigned char partitions = 2; + short num_elements = 8; + double start = 0; + double stop = 8; + }; + struct accel_args { accel_mode mode = accel_mode::noaccel; bool legacy = false; + table_args lut_args = {}; + double offset = 0; double cap = 1.5; double accel_classic = 0.005; |