rawaccel/common/accel-noaccel.hpp
2020-09-03 19:36:44 -07:00

18 lines
401 B
C++

#pragma once
#include "accel-base.hpp"
namespace rawaccel {
/// <summary> Struct to hold acceleration implementation which applies no acceleration. </summary>
struct accel_noaccel {
accel_noaccel(const accel_args&) {}
accel_noaccel() = default;
inline double operator()(double) const { return 1; }
inline double legacy_offset(double speed) const { return operator()(speed); }
};
}