mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
(Menu) Attempt to fix scroll speed issue
This commit is contained in:
parent
bb0d4dae07
commit
199d7b63a1
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user