Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FViewportClient
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool InputTouch
(
FViewport* Viewport, |
Check a key event received by the viewport. | ViewportClient.h | |
virtual bool InputTouch
(
FViewport* Viewport, |
Check a key event received by the viewport. | ViewportClient.h |
InputTouch(FViewport *, int32, uint32, ETouchType::Type, const FVector2D &, float, FDateTime, uint32)
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" |
| Source | /Engine/Source/Runtime/Engine/Private/UnrealClient.cpp |
virtual bool InputTouch
(
FViewport * Viewport,
int32 ControllerId,
uint32 Handle,
ETouchType::Type Type,
const FVector2D & TouchLocation,
float Force,
FDateTime DeviceTimestamp,
uint32 TouchpadIndex
)
True to consume the key event, false to pass it on.
Parameters
| Name | Remarks |
|---|---|
| Viewport | The viewport which the event is from. |
| ControllerId | The controller which the key 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 |
| DeviceTimestamp | Timestamp of the event |
| TouchpadIndex | For devices with multiple touchpads, this is the index of which one |
InputTouch(FViewport *, const FInputDeviceId, uint32, ETouchType::Type, const FVector2D &, float, 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 * Viewport,
const FInputDeviceId DeviceId,
uint32 Handle,
ETouchType::Type Type,
const FVector2D & TouchLocation,
float Force,
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. |