UKismetInputLibrary::GetAnalogValue
#include "Kismet/KismetInputLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns the analog value carried by an analog input event, such as a gamepad trigger pull or thumbstick axis.
Caveats & Gotchas
- • Value range and deadzone handling depend on the source device and any input settings applied upstream — this returns the raw event value, not a re-normalized one.
- • Only meaningful for events raised from analog input; for digital button events, use the pressed/released state instead.
Signature
static float GetAnalogValue(const FAnalogInputEvent& Input); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Input | const FAnalogInputEvent& | The analog input event to read the value from. | — |
Return Type
float Example
Drive trigger feedback from analog input C++
FReply UMyWidget::NativeOnAnalogValueChanged(const FGeometry& InGeometry, const FAnalogInputEvent& InAnalogEvent)
{
const float Value = UKismetInputLibrary::GetAnalogValue(InAnalogEvent);
UpdateTriggerFeedback(Value);
return FReply::Handled();
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?