diff options
| author | Jacob Palecki <[email protected]> | 2020-07-24 16:18:51 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-07-24 16:18:51 -0700 |
| commit | ff1b51138175e56fcc053683a4a7d265194519b0 (patch) | |
| tree | bead4e812c9b9d6a90d34d10fc3a6d64f5c9d37b /common/rawaccel-userspace.hpp | |
| parent | Apply k to speed, allow values over 0 (diff) | |
| download | rawaccel-ff1b51138175e56fcc053683a4a7d265194519b0.tar.xz rawaccel-ff1b51138175e56fcc053683a4a7d265194519b0.zip | |
Flip k and b as scale and exponent for power mode
Diffstat (limited to 'common/rawaccel-userspace.hpp')
| -rw-r--r-- | common/rawaccel-userspace.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/rawaccel-userspace.hpp b/common/rawaccel-userspace.hpp index 259f2cb..e0e13b0 100644 --- a/common/rawaccel-userspace.hpp +++ b/common/rawaccel-userspace.hpp @@ -83,9 +83,9 @@ variables parse(int argc, char** argv) { (clipp::required("midpoint") & clipp::number("speed", accel_args.midpoint)) % "midpoint" ); auto pow_mode = "power accel mode:" % ( - clipp::command("power").set(accel_args.accel_mode, mode::power), - accel_var, - (clipp::option("scale") & clipp::number("num", accel_args.lim_exp)) % "scale factor" + clipp::command("power").set(accel_args.accel_mode, mode::power) >> [&] { accel_args.accel = 1; }, + (clipp::required("exponent") & clipp::number("num", accel_args.lim_exp)) % "exponent", + (clipp::option("scale") & clipp::number("num", accel_args.accel)) % "scale factor" ); auto accel_mode_exclusive = (lin_mode | classic_mode | nat_mode | log_mode | sig_mode | pow_mode); |