RealDocs

UKismetInputLibrary::Key_IsAnalog

function Engine Blueprint Since unknown
#include "Kismet/KismetInputLibrary.h"
Access: public Specifiers: staticBlueprintPure

Description

Returns true if the key is an analog axis, reporting a continuous value rather than a simple pressed/released state.

Caveats & Gotchas

  • Button-emulating axes (see Key_IsButtonAxis) are excluded — this returns true only for axes that report a genuinely continuous range of values.
  • Distinct from Key_IsAxis1D/2D/3D, which classify axis dimensionality — this instead asks whether the axis reports a continuous range of values rather than the two discrete endpoints a button-axis reports.

Signature

static bool Key_IsAnalog(const FKey& Key);

Parameters

Name Type Description Default
Key const FKey& The key to test.

Return Type

bool

Example

Route analog input to a sensitivity curve C++
if (UKismetInputLibrary::Key_IsAnalog(BoundKey))
{
    ApplySensitivityCurve(BoundKey);
}

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.