FMotionEvent

[FMotionEvent](API\Runtime\SlateCore\Input\FMotionEvent) describes a touch pad action (press, move, lift) It is passed to event handlers dealing with touch input.

Windows
MacOS
Linux

Inheritance Hierarchy

FInputEvent

FMotionEvent

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Input/Events.h

Include

#include "Input/Events.h"

Syntax

struct FMotionEvent : public FInputEvent

Remarks

FMotionEvent describes a touch pad action (press, move, lift) It is passed to event handlers dealing with touch input.

Constructors

Name Description

Public function

FMotionEvent()

UStruct Constructor. Not meant for normal usage.

Public function

FMotionEvent

(
    uint32 InUserIndex,
    const FVector& InTilt,
    const FVector& InRotationRate,
    const FVector& InGravity,
    const FVector& InAcceleration
)

Functions

Name Description

Public function Const

const FVecto...

 

GetAcceleration()

Returns the 3D acceleration of the device

Public function Const

const FVecto...

 

GetGravity()

Returns the gravity vector (pointing down into the ground)

Public function Const

const FVecto...

 

GetRotationRate()

Returns otation speed

Public function Const

const FVecto...

 

GetTilt()

Returns the current tilt of the device/controller

Public function Const

uint32

 

GetUserIndex()

Returns the index of the user that caused the event

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss