mirror of
https://github.com/ppy/osu.git
synced 2025-02-25 21:02:59 +08:00
Make IdleTracker IHandleGlobalInput
This commit is contained in:
parent
3c0ce2b615
commit
285b199d7d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user