Context scope that indicates which IInputDevice is currently being handled. 更多...
#include <GenericApplicationMessageHandler.h>
Public 成员函数 | |
| FInputDeviceScope ()=delete | |
| Cannot be copied/moved | |
| FInputDeviceScope (IInputDevice *InInputDevice, FName InInputDeviceName, int32 InHardwareDeviceHandle=-1, FString InHardwareDeviceIdentifier=FString()) | |
| Constructor, this should only be allocated directly on the stack | |
静态 Public 成员函数 | |
| static const FInputDeviceScope * | GetCurrent () |
| Returns the currently active InputDeviceScope. 更多... | |
Public 属性 | |
| int32 | HardwareDeviceHandle |
| A system-specific device id, this is not the same as controllerId and represents a physical device instead of logical user. 更多... | |
| FString | HardwareDeviceIdentifier |
| Logical string identifying the hardware device. 更多... | |
| class IInputDevice * | InputDevice |
| The specific InputDevice that is currently being polled. 更多... | |
| FName | InputDeviceName |
| Logical name of the input device interface. 更多... | |
Context scope that indicates which IInputDevice is currently being handled.
This can be used to determine hardware-specific information when handling input from FGenericApplicationMessageHandler subclasses. This is generally set during SendControllerEvents or Tick and is only valid on the game thread.
|
static |
Returns the currently active InputDeviceScope.
This is only valid to call on the game thread and may return null
| int32 FInputDeviceScope::HardwareDeviceHandle |
A system-specific device id, this is not the same as controllerId and represents a physical device instead of logical user.
-1 represents an unknown device
| FString FInputDeviceScope::HardwareDeviceIdentifier |
Logical string identifying the hardware device.
This is not translated and is system-specific, it may be empty
| class IInputDevice* FInputDeviceScope::InputDevice |
The specific InputDevice that is currently being polled.
This is only valid within the current function scope and may be null
| FName FInputDeviceScope::InputDeviceName |
Logical name of the input device interface.
This is not translated but is platform-specific