Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FGenericPlatformMisc
Description
If bEnablePreferredInputAPIPreferences is enabled, then check if the given input device is "Preferred" by the user. If a null device name is given, then this function will always treat that as a preferred API and return true.
| Name | IsPreferredInputDevice |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h |
| Include Path | #include "GenericPlatform/GenericPlatformMisc.h" |
| Source | /Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp |
static bool IsPreferredInputDevice
(
const TCHAR * DeviceName
)
True if the given input device API is preferred.
Parameters
| Name | Remarks |
|---|---|
| DeviceName | The name of the input device API to check if it is preferred. This should come from an IInputDeviceModule::GetPreferredDeviceAPIString call. |