diff options
Diffstat (limited to 'common/rawaccel.hpp')
| -rw-r--r-- | common/rawaccel.hpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/common/rawaccel.hpp b/common/rawaccel.hpp index d0c1b66..6f737da 100644 --- a/common/rawaccel.hpp +++ b/common/rawaccel.hpp @@ -204,7 +204,7 @@ namespace rawaccel { { if (apply_rotate) { - return rotate(input); + input = rotate(input); } input.x *= sensitivity.x; @@ -223,10 +223,14 @@ namespace rawaccel { { if (apply_rotate) { - return rotate(input); + input = rotate(input); + } + + if (apply_accel) + { + input = accel_fn(input, time); } - input = accel_fn(input, time); input.x *= sensitivity.x; input.y *= sensitivity.y; |