forked from Ports/perfect_dark
Make mousescroll work effectively for fast sliders
This commit is contained in:
1 file changed
+6
-1
+6
-1
@@ -2610,7 +2610,12 @@ bool menuitemSliderTick(struct menuitem *item, struct menudialog *dialog, struct
|
||||
|
||||
#ifndef PLATFORM_N64
|
||||
if (g_MenuUsingMouse && inputs->mousescroll) {
|
||||
index += -inputs->mousescroll;
|
||||
if ((item->flags & MENUITEMFLAG_SLIDER_FAST) == 0) {
|
||||
index += -inputs->mousescroll;
|
||||
} else {
|
||||
s32 mult = item->param3 / 40;
|
||||
index += -inputs->mousescroll * (mult ? mult : 1);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user