ISlateViewport::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

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Rendering/RenderingCommon.h

Include

#include "Rendering/RenderingCommon.h"

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

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