engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FModifierKeysState类 参考

FModifierKeysState stores the pressed state of keys that are commonly used as modifiers 更多...

#include <GenericApplication.h>

Public 成员函数

bool AreCapsLocked () const
 
bool AreModifersDown (EModifierKey::Type ModiferKeys) const
 
 FModifierKeysState (const bool bInIsLeftShiftDown, const bool bInIsRightShiftDown, const bool bInIsLeftControlDown, const bool bInIsRightControlDown, const bool bInIsLeftAltDown, const bool bInIsRightAltDown, const bool bInIsLeftCommandDown, const bool bInIsRightCommandDown, const bool bInAreCapsLocked)
 Constructor. 更多...
 
bool IsAltDown () const
 Returns true if either alt key was down when this event occurred 更多...
 
bool IsCommandDown () const
 Returns true if either command key was down when this event occurred 更多...
 
bool IsControlDown () const
 Returns true if either control key was down when this event occurred 更多...
 
bool IsLeftAltDown () const
 Returns true if left alt key was down when this event occurred 更多...
 
bool IsLeftCommandDown () const
 Returns true if left command key was down when this event occurred 更多...
 
bool IsLeftControlDown () const
 Returns true if left control key was down when this event occurred 更多...
 
bool IsLeftShiftDown () const
 Returns true if left shift key was down when this event occurred 更多...
 
bool IsRightAltDown () const
 Returns true if right alt key was down when this event occurred 更多...
 
bool IsRightCommandDown () const
 Returns true if right command key was down when this event occurred 更多...
 
bool IsRightControlDown () const
 Returns true if right control key was down when this event occurred 更多...
 
bool IsRightShiftDown () const
 Returns true if right shift key was down when this event occurred 更多...
 
bool IsShiftDown () const
 Returns true if either shift key was down when this event occurred 更多...
 

详细描述

FModifierKeysState stores the pressed state of keys that are commonly used as modifiers

构造及析构函数说明

◆ FModifierKeysState()

FModifierKeysState::FModifierKeysState ( const bool  bInIsLeftShiftDown,
const bool  bInIsRightShiftDown,
const bool  bInIsLeftControlDown,
const bool  bInIsRightControlDown,
const bool  bInIsLeftAltDown,
const bool  bInIsRightAltDown,
const bool  bInIsLeftCommandDown,
const bool  bInIsRightCommandDown,
const bool  bInAreCapsLocked 
)
inline

Constructor.

Events are immutable once constructed.

参数
bInIsLeftShiftDownTrue if left shift is pressed
bInIsRightShiftDownTrue if right shift is pressed
bInIsLeftControlDownTrue if left control is pressed
bInIsRightControlDownTrue if right control is pressed
bInIsLeftAltDownTrue if left alt is pressed
bInIsRightAltDownTrue if right alt is pressed

成员函数说明

◆ AreCapsLocked()

bool FModifierKeysState::AreCapsLocked ( ) const
inline
返回
true if the Caps Lock key has been toggled to the enabled state.

◆ AreModifersDown()

bool FModifierKeysState::AreModifersDown ( EModifierKey::Type  ModiferKeys) const
inline
参数
ModifierKeysthe modifier keys to test to see if they are pressed. Returns true if no modifiers are specified.
返回
true if all modifier keys are pressed specified in the modifier keys.

◆ IsAltDown()

bool FModifierKeysState::IsAltDown ( ) const
inline

Returns true if either alt key was down when this event occurred

返回
True if alt is pressed

◆ IsCommandDown()

bool FModifierKeysState::IsCommandDown ( ) const
inline

Returns true if either command key was down when this event occurred

返回
True if command is pressed

◆ IsControlDown()

bool FModifierKeysState::IsControlDown ( ) const
inline

Returns true if either control key was down when this event occurred

返回
True if control is pressed

◆ IsLeftAltDown()

bool FModifierKeysState::IsLeftAltDown ( ) const
inline

Returns true if left alt key was down when this event occurred

返回
True if left alt is pressed

◆ IsLeftCommandDown()

bool FModifierKeysState::IsLeftCommandDown ( ) const
inline

Returns true if left command key was down when this event occurred

返回
True if left command is pressed

◆ IsLeftControlDown()

bool FModifierKeysState::IsLeftControlDown ( ) const
inline

Returns true if left control key was down when this event occurred

返回
True if left control is pressed

◆ IsLeftShiftDown()

bool FModifierKeysState::IsLeftShiftDown ( ) const
inline

Returns true if left shift key was down when this event occurred

返回
True if left shift is pressed

◆ IsRightAltDown()

bool FModifierKeysState::IsRightAltDown ( ) const
inline

Returns true if right alt key was down when this event occurred

返回
True if right alt is pressed

◆ IsRightCommandDown()

bool FModifierKeysState::IsRightCommandDown ( ) const
inline

Returns true if right command key was down when this event occurred

返回
True if right command is pressed

◆ IsRightControlDown()

bool FModifierKeysState::IsRightControlDown ( ) const
inline

Returns true if right control key was down when this event occurred

返回
True if right control is pressed

◆ IsRightShiftDown()

bool FModifierKeysState::IsRightShiftDown ( ) const
inline

Returns true if right shift key was down when this event occurred

返回
True if right shift is pressed

◆ IsShiftDown()

bool FModifierKeysState::IsShiftDown ( ) const
inline

Returns true if either shift key was down when this event occurred

返回
True if shift is pressed

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