16static auto no_deadzone(
const float deadzone,
const float value) ->
float
22static auto basic_deadzone(
const float deadzone,
const float value) ->
float
24 if(std::abs(value) >= deadzone)
33static auto no_deadzone(
const float deadzone,
const float x,
const float y) ->
point
39static auto radial_deadzone(
const float deadzone,
const float x,
const float y) ->
point
42 const double length = std::sqrt(
x *
x +
y *
y);
47 const float nx =
x / length;
48 const float ny =
y / length;
49 return radial_deadzone(deadzone, nx, ny);
52 if(length >= deadzone)