1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 02:09:54 +08:00

Make IdleTracker IHandleGlobalInput

This commit is contained in:
Roman Kapustin
2018-11-19 20:50:46 +03:00
Unverified
parent 3c0ce2b615
commit 285b199d7d
+1 -1
View File
@@ -8,7 +8,7 @@ using osu.Framework.Input.Events;
namespace osu.Game.Input
{
public class IdleTracker : Component, IKeyBindingHandler<PlatformAction>
public class IdleTracker : Component, IKeyBindingHandler<PlatformAction>, IHandleGlobalInput
{
private double lastInteractionTime;
public double IdleTime => Clock.CurrentTime - lastInteractionTime;