diff options
| author | Jacob Palecki <[email protected]> | 2020-07-23 15:42:25 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-07-23 15:42:25 -0700 |
| commit | 988c049f044857e713e3cbe33b17307784df719d (patch) | |
| tree | 6fc3710de4062b724e975f314d9bd5cca066fc74 | |
| parent | Use speed instead of b, preserve speed < 1 behavior without offset (diff) | |
| download | rawaccel-988c049f044857e713e3cbe33b17307784df719d.tar.xz rawaccel-988c049f044857e713e3cbe33b17307784df719d.zip | |
increment k for power style
| -rw-r--r-- | common/rawaccel.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/rawaccel.hpp b/common/rawaccel.hpp index 9a072d1..a60fe1c 100644 --- a/common/rawaccel.hpp +++ b/common/rawaccel.hpp @@ -141,6 +141,7 @@ struct accel_function { b = args.accel; k = args.lim_exp - 1; if (args.accel_mode == mode::natural) b /= k; + if (args.accel_mode == mode::power) k++; speed_offset = args.offset; weight = args.weight; |