Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UInputDeviceSubsystem
Description
Returns the most recently used FInputDeviceId for the given platform user id.
This will be INPUTDEVICEID_NONE if there is no known device for the given user.
| Name | GetMostRecentlyUsedInputDeviceId |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/InputDeviceSubsystem.h |
| Include Path | #include "GameFramework/InputDeviceSubsystem.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameFramework/InputDeviceSubsystem.cpp |
UFUNCTION (BlueprintCallable, Category="Input Devices",
Meta=(ReturnDisplayName="Latest Device Id"))
FInputDeviceId GetMostRecentlyUsedInputDeviceId
(
const FPlatformUserId InUserId,
const EHardwareDevicePrimaryType OfType
) const
Parameters
| Name | Remarks |
|---|---|
| InUserId | The platform user to find the most recent device for |
| OfType | The type of input device to filter by. If unspecified, then the latest device regardless of its type will be returned. |