/Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h
the last time a user interacted with a keyboard, mouse, touch device, or controller
double GetLastUserInteractionTime() const