UKismetInputLibrary::Key_IsAxis1D
#include "Kismet/KismetInputLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns true if the key is a 1D (float) axis, such as a gamepad trigger or a single thumbstick direction.
Caveats & Gotchas
- • A full 2D thumbstick axis (e.g. Gamepad_LeftX combined with Gamepad_LeftY) is exposed as two separate 1D axis keys, not one 2D key — Key_IsAxis2D refers to a different, distinct set of FKey values (like mouse movement) rather than combined stick input.
- • Includes both genuinely analog axes (see Key_IsAnalog) and button-emulating axes (see Key_IsButtonAxis) — check those separately if you need to distinguish continuous input from a digital press disguised as an axis.
Signature
static bool Key_IsAxis1D(const FKey& Key); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Key | const FKey& | The key to test. | — |
Return Type
bool Example
Filter for float-axis input bindings C++
if (UKismetInputLibrary::Key_IsAxis1D(BoundKey))
{
BindAxisMapping("Throttle", BoundKey);
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?