inline float EldritchFramework::GetSliderValueFromFOV( const float FOV ) { // TODO: Configurate static const float LoFOV = 60.0f; static const float HiFOV = 120.0f; return InvLerp( FOV, LoFOV, HiFOV ); }
//============================================================================= float32 MapStick(SHORT value) { const sint MIN = -32768; const sint MAX = 32767; const sint DEAD_ZONE = 5000; if (Abs(value) < DEAD_ZONE) value = 0; const float32 t = InvLerp(float32(value), float32(MIN), float32(MAX)); const float32 axis = Lerp(-1.0f, 1.0f, t); return axis; }