Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FGenericPlatformMisc
Description
Sets the [GamepadAPIPreference]PreferredAPI config value in the GGameUserSettingsIni ini to the given value. This will then be used to determine if an input API is preferred on the next boot.
NOTE: This will not take affect immediately. An engine reboot is required to determine which input APIs should be created.
| Name | SetPreferredInputDevices |
| 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 void SetPreferredInputDevices
(
const TCHAR * DeviceName
)
Parameters
| Name | Remarks |
|---|---|
| DeviceName | The full comma-separated list of preferred input APIs this application should use. |