diff options
| author | a1xd <[email protected]> | 2021-03-29 18:01:20 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-03-29 18:01:20 -0400 |
| commit | ed0bbc22681681a16b7d45b05133c38a0b82006f (patch) | |
| tree | 3c883ad3c85608cd167efded8cce09733527f835 /common/accel-natural.hpp | |
| parent | refactor common/settings (diff) | |
| download | rawaccel-ed0bbc22681681a16b7d45b05133c38a0b82006f.tar.xz rawaccel-ed0bbc22681681a16b7d45b05133c38a0b82006f.zip | |
formatting + file renames
Diffstat (limited to 'common/accel-natural.hpp')
| -rw-r--r-- | common/accel-natural.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/common/accel-natural.hpp b/common/accel-natural.hpp index 2939dbd..31ed190 100644 --- a/common/accel-natural.hpp +++ b/common/accel-natural.hpp @@ -1,8 +1,8 @@ #pragma once -#include <math.h> +#include "rawaccel-base.hpp" -#include "rawaccel-settings.h" +#include <math.h> namespace rawaccel { @@ -22,7 +22,8 @@ namespace rawaccel { struct natural_legacy : natural_base { - double operator()(double x) const { + double operator()(double x) const + { if (x <= offset) return 1; double offset_x = x - offset; @@ -36,7 +37,8 @@ namespace rawaccel { struct natural : natural_base { double constant; - double operator()(double x) const { + double operator()(double x) const + { if (x <= offset) return 1; double offset_x = x - offset; |