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

FKeyEvent describes a key action (keyboard/controller key/button pressed or released.) It is passed to event handlers dealing with key input. 更多...

#include <Events.h>

+ 类 FKeyEvent 继承关系图:

Public 成员函数

 FKeyEvent ()
 UStruct Constructor. 更多...
 
 FKeyEvent (const FKey InKey, const FModifierKeysState &InModifierKeys, const uint32 InUserIndex, const bool bInIsRepeat, const uint32 InCharacterCode, const uint32 InKeyCode)
 Constructor. 更多...
 
uint32 GetCharacter () const
 Returns the character code for this event. 更多...
 
FKey GetKey () const
 Returns the name of the key for this event 更多...
 
uint32 GetKeyCode () const
 Returns the key code received from hardware before any conversion/mapping. 更多...
 
virtual SLATECORE_API bool IsKeyEvent () const override
 Is this event a key event.
 
- Public 成员函数 继承自 FInputEvent
bool AreCapsLocked () const
 Returns true if caps lock was on when this event occurred
 
SLATECORE_API FGeometry FindGeometry (const TSharedRef< SWidget > &WidgetToFind) const
 The event path provides additional context for handling
 
 FInputEvent ()
 UStruct Constructor. 更多...
 
 FInputEvent (const FModifierKeysState &InModifierKeys, const int32 InUserIndex, const bool bInIsRepeat)
 Constructor. 更多...
 
const FModifierKeysState & GetModifierKeys () const
 Returns the complete set of modifier keys
 
uint32 GetUserIndex () const
 Returns the index of the user that generated this event.
 
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
 
virtual SLATECORE_API bool IsKeyEvent () const
 Is this event a key event.
 
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
 
virtual SLATECORE_API bool IsPointerEvent () const
 Is this event a pointer event (touch or cursor).
 
bool IsRepeat () const
 Returns whether or not this character is an auto-repeated keystroke 更多...
 
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 更多...
 
void SetEventPath (const FWidgetPath &InEventPath)
 Set the widget path along which this event will be routed
 
virtual ~FInputEvent ()
 Virtual destructor.
 

详细描述

FKeyEvent describes a key action (keyboard/controller key/button pressed or released.) It is passed to event handlers dealing with key input.

构造及析构函数说明

◆ FKeyEvent() [1/2]

FKeyEvent::FKeyEvent ( )
inline

UStruct Constructor.

Not meant for normal usage.

◆ FKeyEvent() [2/2]

FKeyEvent::FKeyEvent ( const FKey  InKey,
const FModifierKeysState &  InModifierKeys,
const uint32  InUserIndex,
const bool  bInIsRepeat,
const uint32  InCharacterCode,
const uint32  InKeyCode 
)
inline

Constructor.

Events are immutable once constructed.

参数
InKeyNameCharacter name
InModifierKeysModifier key state for this event
bInIsRepeatTrue if this key is an auto-repeated keystroke

成员函数说明

◆ GetCharacter()

uint32 FKeyEvent::GetCharacter ( ) const
inline

Returns the character code for this event.

返回
Character code or 0 if this event was not a character key press

◆ GetKey()

FKey FKeyEvent::GetKey ( ) const
inline

Returns the name of the key for this event

返回
Key name

◆ GetKeyCode()

uint32 FKeyEvent::GetKeyCode ( ) const
inline

Returns the key code received from hardware before any conversion/mapping.

返回
Key code received from hardware

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