engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 所有成员列表
FInputDeviceScope类 参考

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.

成员函数说明

◆ GetCurrent()

static const FInputDeviceScope * FInputDeviceScope::GetCurrent ( )
static

Returns the currently active InputDeviceScope.

This is only valid to call on the game thread and may return null

类成员变量说明

◆ HardwareDeviceHandle

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

◆ HardwareDeviceIdentifier

FString FInputDeviceScope::HardwareDeviceIdentifier

Logical string identifying the hardware device.

This is not translated and is system-specific, it may be empty

◆ InputDevice

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

◆ InputDeviceName

FName FInputDeviceScope::InputDeviceName

Logical name of the input device interface.

This is not translated but is platform-specific


该类的文档由以下文件生成: