1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-25 23:52:54 +08:00

Make IdleTracker IHandleGlobalInput

This commit is contained in:
Roman Kapustin 2018-11-19 20:50:46 +03:00
parent 3c0ce2b615
commit 285b199d7d

View File

@ -8,7 +8,7 @@ using osu.Framework.Input.Events;
namespace osu.Game.Input namespace osu.Game.Input
{ {
public class IdleTracker : Component, IKeyBindingHandler<PlatformAction> public class IdleTracker : Component, IKeyBindingHandler<PlatformAction>, IHandleGlobalInput
{ {
private double lastInteractionTime; private double lastInteractionTime;
public double IdleTime => Clock.CurrentTime - lastInteractionTime; public double IdleTime => Clock.CurrentTime - lastInteractionTime;