Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FViewportClient
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool InputTouch
(
FViewport*const Viewport, |
Allow the viewport client to process a touch event received by the viewport. | ViewportClient.h | |
virtual bool InputTouch
(
FViewport*const Viewport, |
Check a key event received by the viewport. | ViewportClient.h |
InputTouch(FViewport *const, const FTouchId, const ETouchType::Type, const FVector2D &, const float, const uint64)
Description
Allow the viewport client to process a touch 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.
| Name | InputTouch |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/ViewportClient.h |
| Include Path | #include "ViewportClient.h" |
virtual bool InputTouch
(
FViewport *const Viewport,
const FTouchId TouchId,
const ETouchType::Type Type,
const FVector2D & TouchLocation,
const float Force,
const uint64 Timestamp
)
True to consume the event, false to pass it on.
Parameters
| Name | Remarks |
|---|---|
| Viewport | The viewport that was touched. |
| TouchId | Identifier unique to this ongoing touch (i.e. device + finger). |
| Type | What kind of touch event this is (see ETouchType). |
| TouchLocation | Viewport-relative position of the touch. |
| Force | How hard the touch is. |
| Timestamp | The timestamp of when this input event was originally polled in the form of CPU cycles. |
InputTouch(FViewport *const, const FInputDeviceId, const uint32, const ETouchType::Type, const FVector2D &, const float, const uint32, const uint64)
Description
Check a key event received by the viewport. If the viewport client uses the event, it should return true to consume it.
| Name | InputTouch |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/ViewportClient.h |
| Include Path | #include "ViewportClient.h" |
virtual bool InputTouch
(
FViewport *const Viewport,
const FInputDeviceId DeviceId,
const uint32 Handle,
const ETouchType::Type Type,
const FVector2D & TouchLocation,
const float Force,
const uint32 TouchpadIndex,
const uint64 Timestamp
)
True to consume the key event, false to pass it on.
Parameters
| Name | Remarks |
|---|---|
| Viewport | The viewport which the event is from. |
| DeviceId | The input device id from which this event is from |
| Handle | Identifier unique to this touch event |
| Type | What kind of touch event this is (see ETouchType) |
| TouchLocation | Screen position of the touch |
| Force | How hard the touch is |
| TouchpadIndex | For devices with multiple touchpads, this is the index of which one |
| Timestamp | The timestamp of when this input event was originally polled in the form of CPU cycles. |