#include "Listeners/TouchInterfaceListener.h"
#include "Settings/TouchInterfaceSettings.h"
#include "Components/ActorComponent.h"
#include "Layout/Geometry.h"
#include "Input/Events.h"
#include "GestureRecognizerComp.generated.h"
Go to the source code of this file.
|
| enum class | ETouchMode : uint8 { SingleTouch
, DoubleTouch
, MultiTouch
} |
| enum class | EMultiTouchBehavior : uint8 { DoNothing
, KeepExistingIndex
, KeepFirstAndUpdateLast
, UpdateBoth
} |
| enum class | ESwipeDirection : uint8 {
Custom
, Up
, Right
, Down
,
Left
, RightUp
, RightDown
, LeftUp
,
LeftDown
} |
| enum class | ESlideDirection : uint8 { Horizontal
, Vertical
} |
|
| | DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSimpleGestureSignature, int32, FingerIndex, FVector2D, Location) |
| | DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams (FOnComplexGesture, float, Delta, float, CurrentOffset, FVector2D, Direction) |
| | DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSwipeGestureSignature, int32, FingerIndex, FSwipeData, SwipeData) |
| | DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnMultiTouchSignature, FTouch, Touch, FVector2D, AveragePosition) |
| | DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams (FOnMultiTapSignature, int32, FingerIndex, int32, TapAmount, FVector2D, Location) |
| | DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnDragSignature, FTouch, Touch) |
| | DECLARE_DYNAMIC_MULTICAST_DELEGATE_FourParams (FOnSlideSignature, int32, FingerIndex, ESlideDirection, Direction, FVector2D, Location, float, Delta) |
◆ EMultiTouchBehavior
Select behavior used for two-finger gestures
| Enumerator |
|---|
| DoNothing | Two-finger gestures stopped
|
| KeepExistingIndex | Keep two first active finger
|
| KeepFirstAndUpdateLast | Keep first active finger and update second finger with last active finger
|
| UpdateBoth | Use last two active finger
|
◆ ESlideDirection
| Enumerator |
|---|
| Horizontal | |
| Vertical | |
◆ ESwipeDirection
| Enumerator |
|---|
| Custom | |
| Up | |
| Right | |
| Down | |
| Left | |
| RightUp | |
| RightDown | |
| LeftUp | |
| LeftDown | |
◆ ETouchMode
| Enumerator |
|---|
| SingleTouch | Gesture with one finger or on each finger (only if two-finger gestures are deactivated) Tap, MultiTap, Long Press, Slide, Drag, Swipe
|
| DoubleTouch | At least two finger touches the screen Zoom, Rotate, Two Finger Swipe, Two Finger Tap
|
| MultiTouch | At least three finger touches the screen Not available if two-finger gestures are disabled
|
◆ DECLARE_DYNAMIC_MULTICAST_DELEGATE_FourParams()
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_FourParams |
( |
FOnSlideSignature | , |
|
|
int32 | , |
|
|
FingerIndex | , |
|
|
ESlideDirection | , |
|
|
Direction | , |
|
|
FVector2D | , |
|
|
Location | , |
|
|
float | , |
|
|
Delta | ) |
◆ DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam()
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam |
( |
FOnDragSignature | , |
|
|
FTouch | , |
|
|
Touch | ) |
◆ DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams() [1/2]
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams |
( |
FOnComplexGesture | , |
|
|
float | , |
|
|
Delta | , |
|
|
float | , |
|
|
CurrentOffset | , |
|
|
FVector2D | , |
|
|
Direction | ) |
◆ DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams() [2/2]
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams |
( |
FOnMultiTapSignature | , |
|
|
int32 | , |
|
|
FingerIndex | , |
|
|
int32 | , |
|
|
TapAmount | , |
|
|
FVector2D | , |
|
|
Location | ) |
◆ DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams() [1/3]
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams |
( |
FOnMultiTouchSignature | , |
|
|
FTouch | , |
|
|
Touch | , |
|
|
FVector2D | , |
|
|
AveragePosition | ) |
◆ DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams() [2/3]
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams |
( |
FOnSimpleGestureSignature | , |
|
|
int32 | , |
|
|
FingerIndex | , |
|
|
FVector2D | , |
|
|
Location | ) |
◆ DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams() [3/3]
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams |
( |
FOnSwipeGestureSignature | , |
|
|
int32 | , |
|
|
FingerIndex | , |
|
|
FSwipeData | , |
|
|
SwipeData | ) |
◆ ClassGroup
| ClassGroup =(TouchInterfaceDesigner) |
A Component that work with Touch Interface to handle Gestures Tap, MultiTap, Long Press, Drag, Slide, Swipe, Rotate, Zoom, Two Finger Swipe, Two Finger Tap
◆ meta