APlayerController::GetInputKeyTimeDown

Returns how long the given key/button has been down.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h

Include

#include "GameFramework/PlayerController.h"

Source

/Engine/Source/Runtime/Engine/Private/PlayerController.cpp

Syntax

float GetInputKeyTimeDown
(
    FKey Key
) const

Remarks

Returns how long the given key/button has been down. Returns 0 if it's up or it just went down this frame.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss