Esempio n. 1
0
inline float EldritchFramework::GetSliderValueFromMouseSpeed(
    const float MouseSpeed) {
  static const float sMouseScaleRange = 8.0f;
  const float AdjustedSliderValue = LogBase(MouseSpeed, sMouseScaleRange);
  const float SliderValue = (AdjustedSliderValue + 1.0f) * 0.5f;
  return SliderValue;
}
Esempio n. 2
0
inline float EldritchFramework::GetSliderValueFromBrightness(
    const float Brightness) {
  static const float sBrightnessScaleRange = 2.0f;
  const float AdjustedSliderValue = LogBase(Brightness, sBrightnessScaleRange);
  const float SliderValue = (AdjustedSliderValue - 1.0f) * -0.5f;
  return SliderValue;
}
inline float EldritchFramework::GetSliderValueFromControllerSpeed( const float ControllerSpeed )
{
	static const float	sControllerScaleRange	= 2.0f;
	const float			AdjustedSliderValue	= LogBase( ControllerSpeed, sControllerScaleRange );
	const float			SliderValue			= ( AdjustedSliderValue + 1.0f ) * 0.5f;
	return SliderValue;
}