Navigation
API > API/Runtime > API/Runtime/ApplicationCore > API/Runtime/ApplicationCore/FInputDeviceRegistry
Description
Override the descriptor returned by FindDescriptor for a specific device ID with a simulated one. Intended for tooling and non-shipping testing (e.g. input preview, device simulation) that needs to pretend a particular device is connected without affecting the real runtime registry.
The simulated descriptor is stored separately from the real registry and is never written to by the platform layer. Call ClearSimulatedDescriptor to remove it.
Not available in Shipping builds.
| Name | SetSimulatedDescriptor |
| Type | function |
| Header File | /Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/InputDeviceRegistry.h |
| Include Path | #include "GenericPlatform/InputDeviceRegistry.h" |
| Source | /Engine/Source/Runtime/ApplicationCore/Private/GenericPlatform/InputDeviceRegistry.cpp |
static void SetSimulatedDescriptor
(
const FInputDeviceId DeviceId,
const FInputDeviceDescriptor & SimulatedDescriptor
)