mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Make IdleTracker IHandleGlobalInput
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user