mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Change signature to new event handler
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Input.States;
|
||||
using osu.Framework.Input.Events;
|
||||
using osu.Framework.Timing;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Beatmaps.ControlPoints;
|
||||
@ -56,9 +56,9 @@ namespace osu.Game.Tests.Visual
|
||||
Clock.ProcessFrame();
|
||||
}
|
||||
|
||||
protected override bool OnScroll(InputState state)
|
||||
protected override bool OnScroll(ScrollEvent e)
|
||||
{
|
||||
if (state.Mouse.ScrollDelta.Y > 0)
|
||||
if (e.Mouse.ScrollDelta.Y > 0)
|
||||
Clock.SeekBackward(true);
|
||||
else
|
||||
Clock.SeekForward(true);
|
||||
|
Reference in New Issue
Block a user