diff options
| author | JacobPalecki <[email protected]> | 2020-08-31 23:03:46 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-08-31 23:03:46 -0700 |
| commit | 471fe599bab6ba0632ddd1dacd20c7fc42db0eee (patch) | |
| tree | 90a82ee14dbb112621657efbd2523ed35f59d154 /common/accel-noaccel.hpp | |
| parent | Merge pull request #16 from JacobPalecki/Misc (diff) | |
| parent | add independent xy accel to driver (diff) | |
| download | rawaccel-471fe599bab6ba0632ddd1dacd20c7fc42db0eee.tar.xz rawaccel-471fe599bab6ba0632ddd1dacd20c7fc42db0eee.zip | |
Merge pull request #17 from a1xd/indep
Indep
Diffstat (limited to 'common/accel-noaccel.hpp')
| -rw-r--r-- | common/accel-noaccel.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/accel-noaccel.hpp b/common/accel-noaccel.hpp index b7f730b..ae6f5f8 100644 --- a/common/accel-noaccel.hpp +++ b/common/accel-noaccel.hpp @@ -5,10 +5,13 @@ namespace rawaccel { /// <summary> Struct to hold acceleration implementation which applies no acceleration. </summary> - struct accel_noaccel : accel_base { + struct accel_noaccel { - accel_noaccel(const accel_args&) : accel_base() {} + accel_noaccel(const accel_args&) {} + accel_noaccel() = default; + inline double operator()(double) const { return 1; } + }; } |