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

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