FAnalogEvent describes a analog key value. 更多...
#include <Events.h>
类 FAnalogInputEvent 继承关系图:Public 成员函数 | |
| FAnalogInputEvent () | |
| UStruct Constructor. 更多... | |
| FAnalogInputEvent (const FKey InKey, const FModifierKeysState &InModifierKeys, const uint32 InUserIndex, const bool bInIsRepeat, const uint32 InCharacterCode, const uint32 InKeyCode, const float InAnalogValue) | |
| Constructor. 更多... | |
| float | GetAnalogValue () const |
| Returns the analog value between 0 and 1. 更多... | |
Public 成员函数 继承自 FKeyEvent | |
| 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. | |
FAnalogEvent describes a analog key value.
It is passed to event handlers dealing with analog keys.
|
inline |
UStruct Constructor.
Not meant for normal usage.
|
inline |
Constructor.
Events are immutable once constructed.
| InKeyName | Character name |
| InModifierKeys | Modifier key state for this event |
| bInIsRepeat | True if this key is an auto-repeated keystroke |
|
inline |
Returns the analog value between 0 and 1.
0 being not pressed at all, 1 being fully pressed. Non analog keys will only be 0 or 1.