UPlayerInput::InputAxis

Handles an axis input event. Returns true if a legacy key bind handled the input, otherwise false.

Choose your operating system:

Windows

macOS

Linux

Deprecated

  • InputAxis has been deprecated, please use the version of InputKey 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

bool InputAxis
(
    FKey Key,
    float Delta,
    float DeltaTime,
    int32 NumSamples,
    bool bGamepad
)

Remarks

Handles an axis input event. Returns true if a legacy key bind handled the input, otherwise false.