diff options
| author | Jacob Palecki <[email protected]> | 2020-07-28 13:25:53 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-07-28 13:25:53 -0700 |
| commit | 41a2448dc9a76b7d39e86cc5ee3b1d6a1583ba72 (patch) | |
| tree | 4461aaf83d8683efd347e6b2236dbcedc11bad03 | |
| parent | Rename variables and add modify functions (diff) | |
| download | rawaccel-41a2448dc9a76b7d39e86cc5ee3b1d6a1583ba72.tar.xz rawaccel-41a2448dc9a76b7d39e86cc5ee3b1d6a1583ba72.zip | |
Fix not all paths returning value
| -rw-r--r-- | common/rawaccel.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/rawaccel.hpp b/common/rawaccel.hpp index 9b35568..9d4b5e3 100644 --- a/common/rawaccel.hpp +++ b/common/rawaccel.hpp @@ -330,15 +330,17 @@ namespace rawaccel { sensitivity = sens; } - vec2d modify(vec2d input) + inline vec2d modify(vec2d input) { if (apply_rotate) { return rotate(input); } + + return input; } - vec2d modify(vec2d input, milliseconds time) + inline vec2d modify(vec2d input, milliseconds time) { return accel_fn(modify(input), time); } |