mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-01-22 23:49:52 -05:00
Update StoryMenuState.hx
This commit is contained in:
parent
9908f973cf
commit
dd7a894b51
1 changed files with 18 additions and 0 deletions
|
@ -336,6 +336,24 @@ class StoryMenuState extends MusicBeatState
|
||||||
changeDifficulty(0);
|
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!
|
// TODO: Querying UI_RIGHT_P (justPressed) after UI_RIGHT always returns false. Fix it!
|
||||||
if (controls.UI_RIGHT_P)
|
if (controls.UI_RIGHT_P)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue