Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/APlayerController
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool InputTouch
(
const FTouchId TouchId, |
Allow the player-controller to process a touch event received by the viewport-client. | GameFramework/PlayerController.h | |
virtual bool InputTouch
(
const FInputDeviceId DeviceId, |
Handles a touch screen action | GameFramework/PlayerController.h |
InputTouch(const FTouchId, const ETouchType::Type, const FVector2D &, const float, const uint64)
Description
Allow the player-controller to process a touch event received by the viewport-client. If the player-controller uses the event, it should return true. If true is returned, the viewport-client will not offer it to the next candidate.
| Name | InputTouch |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h |
| Include Path | #include "GameFramework/PlayerController.h" |
virtual bool InputTouch
(
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 |
|---|---|
| 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(const FInputDeviceId, const uint32, const ETouchType::Type, const FVector2D &, const float, const uint32, const uint64)
Description
Handles a touch screen action
| Name | InputTouch |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h |
| Include Path | #include "GameFramework/PlayerController.h" |
virtual bool InputTouch
(
const FInputDeviceId DeviceId,
const uint32 Handle,
const ETouchType::Type Type,
const FVector2D & TouchLocation,
const float Force,
const uint32 TouchpadIndex,
const uint64 Timestamp
)