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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback