(Menu) Attempt to fix scroll speed issue

This commit is contained in:
Jean-André Santoni 2017-03-05 00:15:21 +01:00
parent bb0d4dae07
commit 199d7b63a1
2 changed files with 2 additions and 3 deletions

View File

@ -608,7 +608,7 @@ static void mui_render(void *data)
menu_input_ctl(MENU_INPUT_CTL_POINTER_ACCEL_READ, &old_accel_val); menu_input_ctl(MENU_INPUT_CTL_POINTER_ACCEL_READ, &old_accel_val);
mui->scroll_y -= old_accel_val / 60.0; mui->scroll_y -= old_accel_val;
new_accel_val = old_accel_val * 0.96; new_accel_val = old_accel_val * 0.96;

View File

@ -476,8 +476,7 @@ static int menu_input_pointer_post_iterate(
menu_animation_ctl(MENU_ANIMATION_CTL_DELTA_TIME, &delta_time); menu_animation_ctl(MENU_ANIMATION_CTL_DELTA_TIME, &delta_time);
s = (menu_input->pointer.dy * 550000000.0 ) / s = menu_input->pointer.dy;
( dpi * delta_time );
menu_input->pointer.accel = (accel0 + accel1 + s) / 3; menu_input->pointer.accel = (accel0 + accel1 + s) / 3;
accel0 = accel1; accel0 = accel1;
accel1 = menu_input->pointer.accel; accel1 = menu_input->pointer.accel;