Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FViewportClient
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool InputMotion
(
FViewport* Viewport, |
Each frame, the input system will update the motion data. | ViewportClient.h | |
virtual bool InputMotion
(
FViewport* Viewport, |
Each frame, the input system will update the motion data. | ViewportClient.h |
InputMotion(FViewport *, int32, const FVector &, const FVector &, const FVector &, const FVector &)
Description
Each frame, the input system will update the motion data.
| Name | InputMotion |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/ViewportClient.h |
| Include Path | #include "ViewportClient.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UnrealClient.cpp |
virtual bool InputMotion
(
FViewport * Viewport,
int32 ControllerId,
const FVector & Tilt,
const FVector & RotationRate,
const FVector & Gravity,
const FVector & Acceleration
)
True to consume the motion event, false to pass it on.
Parameters
| Name | Remarks |
|---|---|
| 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 |
InputMotion(FViewport *, const FInputDeviceId, const FVector &, const FVector &, const FVector &, const FVector &, const uint64)
Description
Each frame, the input system will update the motion data.
| Name | InputMotion |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/ViewportClient.h |
| Include Path | #include "ViewportClient.h" |
virtual bool InputMotion
(
FViewport * Viewport,
const FInputDeviceId DeviceId,
const FVector & Tilt,
const FVector & RotationRate,
const FVector & Gravity,
const FVector & Acceleration,
const uint64 Timestamp
)
True to consume the motion event, false to pass it on.
Parameters
| Name | Remarks |
|---|---|
| Viewport | The viewport which the key event is from. |
| DeviceId | The input device which this 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 |
| Timestamp | The timestamp of when this input event was originally polled in the form of CPU cycles. |