UPlayerInput::InputKey

Handles a key input event. Returns true if there is an action that handles the specified key.

Choose your operating system:

Windows

macOS

Linux

Deprecated

  • This version of InputKey has been deprecated, please use that which takes in FInputKeyParams

References

Module

Engine

Header

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

Include

#include "GameFramework/PlayerInput.h"

Source

/Engine/Source/Runtime/Engine/Private/UserInterface/PlayerInput.cpp

Syntax

virtual bool InputKey
(
    FKey Key,
    enum EInputEvent Event,
    float AmountDepressed,
    bool bGamepad
)

Remarks

Handles a key input event. Returns true if there is an action that handles the specified key.