1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-15 11:22:55 +00:00

Update StoryMenuState.hx

This commit is contained in:
Pixel 2024-06-21 08:42:51 -07:00 committed by EliteMasterEric
parent dd30012d80
commit 55d02d49c2

View file

@ -336,6 +336,24 @@ class StoryMenuState extends MusicBeatState
changeDifficulty(0);
}
#if !html5
if (FlxG.mouse.wheel != 0)
{
changeLevel(-Math.round(FlxG.mouse.wheel));
}
#else
if (FlxG.mouse.wheel < 0)
{
changeLevel(-Math.round(FlxG.mouse.wheel / 8));
}
else if (FlxG.mouse.wheel > 0)
{
changeLevel(-Math.round(FlxG.mouse.wheel / 8));
}
#end
// HTML and NON HTML builds mouse fix.
// TODO: Querying UI_RIGHT_P (justPressed) after UI_RIGHT always returns false. Fix it!
if (controls.UI_RIGHT_P)
{