From 33317e79489848ae537ac78b9c9e70372857aee8 Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Wed, 29 Jul 2020 00:35:39 -0700 Subject: Separate accel implementations into files --- driver/driver.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'driver/driver.cpp') diff --git a/driver/driver.cpp b/driver/driver.cpp index 9704b21..1f9cebd 100644 --- a/driver/driver.cpp +++ b/driver/driver.cpp @@ -79,15 +79,15 @@ Arguments: DebugPrint(("RA time < min with %d ticks\n", ticks)); } - input = global.modifier.modify(input, time); + input = global.modifier.modify_with_accel(input, time); } else { - input = global.modifier.modify(input); + input = global.modifier.modify_without_accel(input); } - double result_x = input.x * global.modifier.sensitivity.x + local_carry.x; - double result_y = input.y * global.modifier.sensitivity.y + local_carry.y; + double result_x = input.x + local_carry.x; + double result_y = input.y + local_carry.y; LONG out_x = static_cast(result_x); LONG out_y = static_cast(result_y); -- cgit v1.2.3