UKismetStringLibrary::Conv_InputDeviceIdToString
#include "Kismet/KismetStringLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintAutocast
Description
Converts an FInputDeviceId (identifying a physical input device such as a gamepad) to its string representation. Backs the 'To String (InputDeviceId)' Blueprint conversion node.
Caveats & Gotchas
- • FInputDeviceId identifies a physical device, not a logical player — in local multiplayer with device swapping, the printed ID belongs to the hardware, and you'd need FPlatformUserId to correlate it to a player index.
- • Mainly useful with the newer Enhanced Input / multi-user input APIs; most single-player or legacy-input projects never encounter this type directly.
Signature
static FString Conv_InputDeviceIdToString(FInputDeviceId InDeviceId) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InDeviceId | FInputDeviceId | The input device identifier to convert. | — |
Return Type
FString Example
Log an input device ID C++
FInputDeviceId DeviceId = Event.GetInputDeviceId();
UE_LOG(LogTemp, Log, TEXT("Device: %s"), *UKismetStringLibrary::Conv_InputDeviceIdToString(DeviceId)); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?