mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 18:52:55 +08:00
Use existing helper function for key repeat
This commit is contained in:
parent
c36d9d4fc3
commit
d704a4597d
@ -19,6 +19,7 @@ using osu.Framework.Extensions.IEnumerableExtensions;
|
|||||||
using osu.Framework.Input.Bindings;
|
using osu.Framework.Input.Bindings;
|
||||||
using osu.Framework.Input.Events;
|
using osu.Framework.Input.Events;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
|
using osu.Game.Extensions;
|
||||||
using osu.Game.Graphics.Containers;
|
using osu.Game.Graphics.Containers;
|
||||||
using osu.Game.Graphics.Cursor;
|
using osu.Game.Graphics.Cursor;
|
||||||
using osu.Game.Input.Bindings;
|
using osu.Game.Input.Bindings;
|
||||||
@ -527,7 +528,7 @@ namespace osu.Game.Screens.Select
|
|||||||
endRepeatSelection();
|
endRepeatSelection();
|
||||||
|
|
||||||
lastRepeatSource = source;
|
lastRepeatSource = source;
|
||||||
Scheduler.Add(repeatDelegate = new ScheduledDelegate(action, Time.Current, repeat_interval));
|
Scheduler.Add(repeatDelegate = this.BeginKeyRepeat(Scheduler, action));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void endRepeatSelection(object source = null)
|
private void endRepeatSelection(object source = null)
|
||||||
|
Loading…
Reference in New Issue
Block a user