Navigation
API > API/Runtime > API/Runtime/SlateCore
FMotionEvent describes a touch pad action (press, move, lift) It is passed to event handlers dealing with touch input.
| Name | FMotionEvent |
| Type | struct |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Input/Events.h |
| Include Path | #include "Input/Events.h" |
Syntax
USTRUCT (BlueprintType )
struct FMotionEvent : public FInputEvent
Inheritance Hierarchy
- FInputEvent → FMotionEvent
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMotionEvent () |
UStruct Constructor. Not meant for normal usage. | Input/Events.h | |
FMotionEvent
(
uint32 InUserIndex, |
Input/Events.h | ||
FMotionEvent
(
const FInputDeviceId InDeviceId, |
Input/Events.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Acceleration | FVector | The 3D acceleration of the device. | Input/Events.h | |
| Gravity | FVector | The gravity vector (pointing down into the ground). | Input/Events.h | |
| RotationRate | FVector | The rotation speed. | Input/Events.h | |
| Tilt | FVector | The current tilt of the device/controller. | Input/Events.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FVector & GetAcceleration() |
Returns the 3D acceleration of the device | Input/Events.h | |
const FVector & GetGravity() |
Returns the gravity vector (pointing down into the ground) | Input/Events.h | |
const FVector & GetRotationRate() |
Returns otation speed | Input/Events.h | |
const FVector & GetTilt() |
Returns the current tilt of the device/controller | Input/Events.h |