Allow adjusting sliders with mousescroll

This commit is contained in:
Matthew Coppola committed 2025-02-23 22:49:24 -05:00
1 parent 8dbe6f2a63
commit e4972ddbe3
1 file changed
+6
+6
View File
@@ -2608,6 +2608,12 @@ bool menuitemSliderTick(struct menuitem *item, struct menudialog *dialog, struct
index = 0;
}
#ifndef PLATFORM_N64
if (g_MenuUsingMouse && inputs->mousescroll) {
index += -inputs->mousescroll;
}
#endif
if ((item->flags & MENUITEMFLAG_SLIDER_FAST) == 0
&& g_Menus[g_MpPlayerNum].xrepeatmode == MENUREPEATMODE_SLOW) {
index = index + inputs->leftright;