FViewportClient::InputMotion

Each frame, the input system will update the motion data.

Windows
MacOS
Linux

Override Hierarchy

FViewportClient::InputMotion()

UGameViewportClient::InputMotion()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/UnrealClient.h

Include

#include "UnrealClient.h"

Syntax

virtual bool InputMotion
(
    FViewport * Viewport,
    int32 ControllerId,
    const FVector & Tilt,
    const FVector & RotationRate,
    const FVector & Gravity,
    const FVector & Acceleration
)

Remarks

Each frame, the input system will update the motion data.

Returns

True to consume the motion event, false to pass it on.

Parameters

Parameter

Description

Viewport

The viewport which the key event is from.

ControllerId

The controller which the key event is from.

Tilt

The current orientation of the device

RotationRate

How fast the tilt is changing

Gravity

Describes the current gravity of the device

Acceleration

Describes the acceleration of the device

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