Update StoryMenuState.hx

This commit is contained in:
Pixel 2024-06-21 08:42:51 -07:00 committed by GitHub
parent 9908f973cf
commit dd7a894b51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)
{