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:
parent
dd30012d80
commit
55d02d49c2
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue