UKismetInputLibrary::Key_IsDigital
#include "Kismet/KismetInputLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns true if the key is a digital button press, reporting only a pressed/released state rather than a continuous value.
Caveats & Gotchas
- • Button-emulating axes (see Key_IsButtonAxis) count as digital for this check even though they are technically FKey axis types under the hood.
- • Also returns true for ordinary buttons (keyboard keys, gamepad face buttons) that are not axis types at all, in addition to button-emulating axes — it is not exclusively about axis classification.
Signature
static bool Key_IsDigital(const FKey& Key); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Key | const FKey& | The key to test. | — |
Return Type
bool Example
Filter for simple pressed/released bindings C++
if (UKismetInputLibrary::Key_IsDigital(BoundKey))
{
BindActionMapping("Jump", BoundKey);
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?