diff options
| author | Jacob Palecki <[email protected]> | 2020-07-22 20:48:59 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-07-22 20:48:59 -0700 |
| commit | 01d773c072e6b9efb4c2a9ebcc70b4cf98a6e32b (patch) | |
| tree | 51f94b33c7beba43b379124c45516563497cebe8 /common/rawaccel-userspace.hpp | |
| parent | add a license (diff) | |
| download | rawaccel-01d773c072e6b9efb4c2a9ebcc70b4cf98a6e32b.tar.xz rawaccel-01d773c072e6b9efb4c2a9ebcc70b4cf98a6e32b.zip | |
Added source-style power acceleration option
Diffstat (limited to 'common/rawaccel-userspace.hpp')
| -rw-r--r-- | common/rawaccel-userspace.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/rawaccel-userspace.hpp b/common/rawaccel-userspace.hpp index 80fcecc..862c55d 100644 --- a/common/rawaccel-userspace.hpp +++ b/common/rawaccel-userspace.hpp @@ -82,8 +82,12 @@ variables parse(int argc, char** argv) { limit_var, (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 + ); - auto accel_mode_exclusive = (lin_mode | classic_mode | nat_mode | log_mode | sig_mode); + auto accel_mode_exclusive = (lin_mode | classic_mode | nat_mode | log_mode | sig_mode | pow_mode); auto accel_opts = "mode-independent accel options:" % (opt_offset, opt_cap, opt_weight, opt_tmin); bool help = false; |