Navigation
API > API/Runtime > API/Runtime/InputDevice
Governs which thread is allowed to call Tick() and SendControllerEvents() on an IInputDevice. Output methods (SetChannelValue, SetChannelValues, SetLightColor, SetDeviceProperty, haptics, etc.) are always called from the game thread regardless of this affinity declaration.
Default is GameThreadOnly — existing third-party IInputDevice plugins require no changes.
| Name | EInputDeviceThreadAffinity |
| Type | enum |
| Header File | /Engine/Source/Runtime/InputDevice/Public/IInputDevice.h |
| Include Path | #include "IInputDevice.h" |
Syntax
enum EInputDeviceThreadAffinity
{
GameThreadOnly,
InputThreadSafe,
}
Values
| Name | Remarks |
|---|---|
| GameThreadOnly | Device must be ticked by the game thread. Safe for all legacy and Win32 message-pump devices. |
| InputThreadSafe | Device may be ticked by the dedicated input thread. |