UKismetInputLibrary::InputEvent_IsRepeat
#include "Kismet/KismetInputLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns whether this input event is an auto-repeated keystroke generated by the OS holding a key down, rather than a fresh key press.
Caveats & Gotchas
- • Only meaningful for key-down style events — key-up and analog events never set the repeat flag.
- • Auto-repeat timing (delay and rate) comes from the OS/platform settings, not the engine, so it is not consistent across machines.
Signature
static bool InputEvent_IsRepeat(const FInputEvent& Input); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Input | const FInputEvent& | The input event to test. | — |
Return Type
bool Example
Ignore OS key-repeat for a one-shot action C++
FReply UMyWidget::NativeOnKeyDown(const FGeometry& InGeometry, const FKeyEvent& InKeyEvent)
{
if (UKismetInputLibrary::InputEvent_IsRepeat(InKeyEvent))
{
return FReply::Handled();
}
TriggerSingleShotAction();
return FReply::Handled();
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?