Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Input
Inheritance Hierarchy
- FInputEvent
- FKeyEvent
- FAnalogInputEvent
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Input/Events.h |
| Include | #include "Input/Events.h" |
Syntax
struct FKeyEvent : public FInputEvent
Remarks
FKeyEvent describes a key action (keyboard/controller key/button pressed or released.) It is passed to event handlers dealing with key input.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FKeyEvent () |
UStruct Constructor. Not meant for normal usage. | ||
FKeyEvent
(
const FKey InKey, |
Constructor. Events are immutable once constructed. | ||
FKeyEvent
(
const FKey InKey, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| uint32 | GetCharacter () |
Returns the character code for this event. | |
| FKey | GetKey () |
Returns the name of the key for this event | |
| uint32 | GetKeyCode () |
Returns the key code received from hardware before any conversion/mapping. |
Overridden from FInputEvent
| Type | Name | Description | |
|---|---|---|---|
| bool | IsKeyEvent () |
Is this event a key event. | |
| FText | ToText () |