FSceneViewport::OnMotionDetected

Called when motion is detected (controller or device) e.g. Someone tilts or shakes their controller.

Windows
MacOS
Linux

Override Hierarchy

ISlateViewport::OnMotionDetected()

FSceneViewport::OnMotionDetected()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Slate/SceneViewport.h

Include

#include "Slate/SceneViewport.h"

Source

/Engine/Source/Runtime/Engine/Private/Slate/SceneViewport.cpp

Syntax

virtual FReply OnMotionDetected
(
    const FGeometry & MyGeometry,
    const FMotionEvent & InMotionEvent
)

Remarks

Called when motion is detected (controller or device) e.g. Someone tilts or shakes their controller.

Parameters

Parameter

Description

InMotionEvent

The motion event generated

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