Cleanup
This commit is contained in:
parent
8165b43170
commit
f292524031
|
@ -204,27 +204,6 @@ static float recalc_step_based_on_length_of_action(rarch_setting_t *setting)
|
||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
if ( global )
|
if ( global )
|
||||||
{
|
|
||||||
#if 0
|
|
||||||
if (setting->enforce_minrange)
|
|
||||||
{
|
|
||||||
float numsteps = (setting->max-setting->min)/setting->step ;
|
|
||||||
float multiplier = 1.0f ;
|
|
||||||
if ( global->menu.action_press_time > _12_SECONDS)
|
|
||||||
multiplier = (numsteps/60.0f);
|
|
||||||
else if ( global->menu.action_press_time > _9_SECONDS)
|
|
||||||
multiplier = (numsteps/300.0f) ;
|
|
||||||
else if ( global->menu.action_press_time > _6_SECONDS)
|
|
||||||
multiplier = (numsteps/750.0f);
|
|
||||||
else if ( global->menu.action_press_time > _3_SECONDS)
|
|
||||||
multiplier = (numsteps/3000.0f) ;
|
|
||||||
else
|
|
||||||
multiplier = 1.0f ;
|
|
||||||
|
|
||||||
step = setting->step*multiplier;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
if ( global->menu.action_press_time > _21_SECONDS)
|
if ( global->menu.action_press_time > _21_SECONDS)
|
||||||
step = setting->step*1000000.0f ;
|
step = setting->step*1000000.0f ;
|
||||||
|
@ -243,7 +222,6 @@ static float recalc_step_based_on_length_of_action(rarch_setting_t *setting)
|
||||||
else
|
else
|
||||||
step = setting->step ;
|
step = setting->step ;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
return step < setting->step ? setting->step : step ;
|
return step < setting->step ? setting->step : step ;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue