diff options
| author | Jacob Palecki <[email protected]> | 2020-07-29 00:35:39 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-07-29 00:35:39 -0700 |
| commit | 33317e79489848ae537ac78b9c9e70372857aee8 (patch) | |
| tree | 2284bcec0ded710a61d49ba3fc52ff6096dd06c6 /driver/driver.cpp | |
| parent | add per-class args structs (diff) | |
| download | rawaccel-33317e79489848ae537ac78b9c9e70372857aee8.tar.xz rawaccel-33317e79489848ae537ac78b9c9e70372857aee8.zip | |
Separate accel implementations into files
Diffstat (limited to 'driver/driver.cpp')
| -rw-r--r-- | driver/driver.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<LONG>(result_x); LONG out_y = static_cast<LONG>(result_y); |