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

Current state of physical input devices at a point in time. 更多...

#include <InputState.h>

Public 成员函数

bool IsFromDevice (EInputDevices DeviceType) const
 
void SetModifierKeyStates (bool bShiftDown, bool bAltDown, bool bCtrlDown, bool bCmdDown)
 Update keyboard modifier key states
 

静态 Public 成员函数

static bool IsAltKeyDown (const FInputDeviceState &InputState)
 
static bool IsCmdKeyDown (const FInputDeviceState &InputState)
 
static bool IsCtrlKeyDown (const FInputDeviceState &InputState)
 
static bool IsShiftKeyDown (const FInputDeviceState &InputState)
 

Public 属性

bool bAltKeyDown
 Is they keyboard ALT modifier key currently pressed down
 
bool bCmdKeyDown
 Is they keyboard CMD modifier key currently pressed down (only on Apple devices)
 
bool bCtrlKeyDown
 Is they keyboard CTRL modifier key currently pressed down
 
bool bShiftKeyDown
 Is they keyboard SHIFT modifier key currently pressed down
 
EInputDevices InputDevice
 Which InputDevice member is valid in this state
 
FKeyboardInputDeviceState Keyboard
 Current state of Keyboard device, if InputDevice == EInputDevices::Keyboard
 
FMouseInputDeviceState Mouse
 Current state of Mouse device, if InputDevice == EInputDevices::Mouse
 

详细描述

Current state of physical input devices at a point in time.

Assumption is that the state refers to a single physical input device, ie InputDevice field is a single value of EInputDevices and not a combination.

成员函数说明

◆ IsAltKeyDown()

static bool FInputDeviceState::IsAltKeyDown ( const FInputDeviceState &  InputState)
inlinestatic
返回
true if alt key is down in input state

◆ IsCmdKeyDown()

static bool FInputDeviceState::IsCmdKeyDown ( const FInputDeviceState &  InputState)
inlinestatic
返回
true if Apple Command key is down in input state

◆ IsCtrlKeyDown()

static bool FInputDeviceState::IsCtrlKeyDown ( const FInputDeviceState &  InputState)
inlinestatic
返回
true if ctrl key is down in input state

◆ IsFromDevice()

bool FInputDeviceState::IsFromDevice ( EInputDevices  DeviceType) const
inline
参数
DeviceTypeCombination of device-type flags
返回
true if this input state is for an input device that matches the query flags

◆ IsShiftKeyDown()

static bool FInputDeviceState::IsShiftKeyDown ( const FInputDeviceState &  InputState)
inlinestatic
返回
true if shift key is down in input state

该结构体的文档由以下文件生成: