![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <GenericApplicationMessageHandler.h>
Public Member Functions | |
| APPLICATIONCORE_API | FInputDeviceScope (IInputDevice *InInputDevice, FName InInputDeviceName, int32 InHardwareDeviceHandle=-1, FString InHardwareDeviceIdentifier=FString()) |
| APPLICATIONCORE_API | ~FInputDeviceScope () |
| FInputDeviceScope ()=delete | |
| FInputDeviceScope (const FInputDeviceScope &)=delete | |
| FInputDeviceScope & | operator= (const FInputDeviceScope &)=delete |
| FInputDeviceScope (FInputDeviceScope &&)=delete | |
| FInputDeviceScope & | operator= (FInputDeviceScope &&)=delete |
Static Public Member Functions | |
| static APPLICATIONCORE_API const FInputDeviceScope * | GetCurrent () |
Public Attributes | |
| class IInputDevice * | InputDevice |
| FName | InputDeviceName |
| int32 | HardwareDeviceHandle |
| FString | HardwareDeviceIdentifier |
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.
| FInputDeviceScope::FInputDeviceScope | ( | IInputDevice * | InInputDevice, |
| FName | InInputDeviceName, | ||
| int32 | InHardwareDeviceHandle = -1, |
||
| FString | InHardwareDeviceIdentifier = FString() |
||
| ) |
Constructor, this should only be allocated directly on the stack
| FInputDeviceScope::~FInputDeviceScope | ( | ) |
|
delete |
Cannot be copied/moved
|
delete |
|
delete |
|
static |
Returns the currently active InputDeviceScope. This is only valid to call on the game thread and may return null
|
delete |
|
delete |
| 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