MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / saturatef

Function saturatef

engine/Poseidon/Input/InputProcessingSdl.cpp:356–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354{
355 sRumble.PlayRamp(beg, end, dur);
356}
357
358static float ApplyDeadzone(float val, float dz)
359{
360 if (fabsf(val) < dz)
361 return 0.0f;
362 return (val - (val > 0 ? dz : -dz)) / (1.0f - dz);

Callers 1

ProcessJoystick_SDLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected