diff options
| author | a1xd <[email protected]> | 2021-03-30 18:26:20 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-03-30 18:26:20 -0400 |
| commit | 4456e2bc8b9c1ef9c1aa2e3509adc8f456bb5fdc (patch) | |
| tree | 1e6d3352665a0c70f5270d31c332e8950f80e3a6 /driver | |
| parent | add zero/inf/nan guards (diff) | |
| download | rawaccel-4456e2bc8b9c1ef9c1aa2e3509adc8f456bb5fdc.tar.xz rawaccel-4456e2bc8b9c1ef9c1aa2e3509adc8f456bb5fdc.zip | |
put utility in namespace
Diffstat (limited to 'driver')
| -rw-r--r-- | driver/driver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/driver.cpp b/driver/driver.cpp index 5b9eca4..49f375d 100644 --- a/driver/driver.cpp +++ b/driver/driver.cpp @@ -82,7 +82,7 @@ Arguments: counter_t ticks = now - devExt->counter; devExt->counter = now; milliseconds time = ticks * global.tick_interval; - return clampsd(time, global.args.time_min, 100); + return ra::clampsd(time, global.args.time_min, 100); }; global.modifier.apply_acceleration(input, time_supplier); @@ -99,7 +99,7 @@ Arguments: double carry_x = carried_result_x - out_x; double carry_y = carried_result_y - out_y; - if (!infnan(carry_x + carry_y)) { + if (!ra::infnan(carry_x + carry_y)) { devExt->carry.x = carried_result_x - out_x; devExt->carry.y = carried_result_y - out_y; it->LastX = out_x; |