Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FViewportClient
- FViewportClient::InputMotion()
- UGameViewportClient::InputMotion()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/ViewportClient.h |
| Include | #include "ViewportClient.h" |
virtual bool InputMotion
&40;
FViewport &42; Viewport,
int32 ControllerId,
const FVector & Tilt,
const FVector & RotationRate,
const FVector & Gravity,
const FVector & Acceleration
&41;
Remarks
Each frame, the input system will update the motion data. True to consume the motion event, false to pass it on.
Parameters
| Name | 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 |