UGameViewportClient::InputMotion

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

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

FViewportClient::InputMotion()

UGameViewportClient::InputMotion()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h

Include

#include "Engine/GameViewportClient.h"

Source

/Engine/Source/Runtime/Engine/Private/GameViewportClient.cpp

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