mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-03-25 06:10:16 -04:00
Merge pull request #649 from FunkinCrew/jvnpixels/story-menu-scrolling
[PUBLIC PR] Scroll wheel in Story Menu
This commit is contained in:
commit
b338dfe8f0
1 changed files with 16 additions and 0 deletions
|
@ -336,6 +336,22 @@ 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
|
||||
|
||||
// TODO: Querying UI_RIGHT_P (justPressed) after UI_RIGHT always returns false. Fix it!
|
||||
if (controls.UI_RIGHT_P)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue