Navigation
Unreal Engine C++ API Reference > Runtime > SlateCore > Input
Inheritance Hierarchy
- FInputEvent
- FCharacterEvent
- FKeyEvent
- FAnalogInputEvent
- FMotionEvent
- FNavigationEvent
- FPointerEvent
- FDragDropEvent
References
Module | SlateCore |
Header | /Engine/Source/Runtime/SlateCore/Public/Input/Events.h |
Include | #include "Input/Events.h" |
Syntax
struct FInputEvent
Remarks
Base class for all mouse and keyevents.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bIsRepeat | True if this key was auto-repeated. |
![]() |
const FWidgetPath * | EventPath | Events are sent along paths. See (GetEventPath). |
![]() |
FInputDeviceId | InputDeviceId | The ID of the input device that caused this event. |
![]() |
FModifierKeysState | ModifierKeys | State of modifier keys when this event happened. |
![]() |
uint32 | UserIndex | The index of the user that caused the event. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FInputEvent () |
UStruct Constructor. Not meant for normal usage. | |
![]() |
FInputEvent
(
const FModifierKeysState& InModifierKeys, |
Constructor. Events are immutable once constructed. | |
![]() |
FInputEvent
(
const FModifierKeysState& InModifierKeys, |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
~FInputEvent () |
Virtual destructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | Returns true if caps lock was on when this event occurred | |
![]() ![]() |
FGeometry | FindGeometry
(
const TSharedRef< SWidget >& WidgetToFind |
The event path provides additional context for handling |
![]() ![]() |
const FWidgetPath * | GetEventPath () |
|
![]() ![]() |
FInputDeviceId | Returns the input device that caused this event. | |
![]() ![]() |
const FModifierKeysState & | Returns the complete set of modifier keys | |
![]() ![]() |
FPlatformUserId | Returns the associated platform user that caused this event | |
![]() ![]() |
uint32 | GetUserIndex () |
Returns the index of the user that generated this event. |
![]() ![]() |
TSharedRef< SWindow > | GetWindow () |
|
![]() ![]() |
bool | IsAltDown () |
Returns true if either alt key was down when this event occurred |
![]() ![]() |
bool | Returns true if either command key was down when this event occurred | |
![]() ![]() |
bool | Returns true if either control key was down when this event occurred | |
![]() ![]() ![]() |
bool | IsKeyEvent () |
Is this event a key event. |
![]() ![]() |
bool | Returns true if left alt key was down when this event occurred | |
![]() ![]() |
bool | Returns true if left command key was down when this event occurred | |
![]() ![]() |
bool | Returns true if left control key was down when this event occurred | |
![]() ![]() |
bool | Returns true if left shift key was down when this event occurred | |
![]() ![]() ![]() |
bool | Is this event a pointer event (touch or cursor). | |
![]() ![]() |
bool | IsRepeat () |
Returns whether or not this character is an auto-repeated keystroke |
![]() ![]() |
bool | Returns true if right alt key was down when this event occurred | |
![]() ![]() |
bool | Returns true if right command key was down when this event occurred | |
![]() ![]() |
bool | Returns true if right control key was down when this event occurred | |
![]() ![]() |
bool | Returns true if right shift key was down when this event occurred | |
![]() ![]() |
bool | IsShiftDown () |
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 |
![]() ![]() ![]() |
FText | ToText () |