FSceneViewport::OnMotionDetected

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

Choose your operating system:

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