Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UGameViewportClient
Description
Allow the viewport-client to process a gesture event received by the viewport. If the viewport-client uses the event, it should return true. If true is returned, the viewport should not bubble the event.
Virtual Inheritance
- FViewportClient::InputGesture → UGameViewportClient::InputGesture
| Name | InputGesture |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h |
| Include Path | #include "Engine/GameViewportClient.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameViewportClient.cpp |
virtual bool InputGesture
(
FViewport * Viewport,
const FInputDeviceId DeviceId,
EGestureEvent GestureType,
EGesturePhase GesturePhase,
const FVector2D & GestureDelta,
bool bIsDirectionInvertedFromDevice,
const uint64 Timestamp
)
True to consume the gesture event, false to pass it on.
Parameters
| Name | Remarks |
|---|---|
| Viewport | The viewport on which the gesture was performed. |
| DeviceId | The input device on which the gesture was performed. |
| GestureType | The type of the gesture. |
| GesturePhase | The phase of the gesture. |
| GestureDelta | Delta values of this gesture from the previous instance of it. |
| Timestamp | The timestamp of when this input event was originally polled in the form of CPU cycles. |