![]() |
Touch Interface Designer 2025.2
Create touch interface with a visual editor and manage all mobile inputs like gestures
|
#include <AdvancedJoystickLogic.h>


Public Member Functions | |
| UAdvancedJoystickLogic () | |
| virtual void | Initialize_Implementation () override |
| BlueprintCallable void | LockThumb () |
| BlueprintCallable void | LockThumbAtDesiredPosition (const FVector2D LockPosition, const bool bClamp=true) |
| BlueprintCallable void | UnlockThumb () |
| BlueprintCallable bool | IsLocked () const |
| Public Member Functions inherited from UJoystickLogic | |
| UJoystickLogic () | |
| virtual void | SetInputAction_Implementation (UInputAction *NewInputAction) override |
| BlueprintPure FVector2D | GetThumbPosition (const bool bNormalized) const |
| BlueprintPure FVector2D | GetThumbOffset () const |
| BlueprintPure UComponentDecorator * | GetThumbstickLayer () const |
| float | GetAngleDelta () const |
| FVector2D | GetRawValue (const bool bApplyModifiers=false) |
| FVector2D | GetRawValueBasedOnPosition (const FGeometry &ComponentGeometry, const FVector2D InThumbPosition) |
| BlueprintCallable void | SetThumbstickLayerName (FName LayerName) |
Public Attributes | |
| Category ="Joystick|Advanced" | |
| EditAnywhere | |
| BlueprintReadOnly | |
| meta | |
| BlueprintReadOnly uint8 | bRecenterThumbstickAfterLock:1 |
| BlueprintReadOnly uint8 | bAlwaysDisplaySprintLayer:1 |
| BlueprintReadOnly UInputAction * | SprintInputAction |
| BlueprintReadOnly uint8 | bAutoSprint:1 |
| Public Attributes inherited from UJoystickLogic | |
| Category ="Joystick" | |
| BlueprintCallable | |
| EditAnywhere | |
| BlueprintReadOnly | |
| meta =(AllowPrivateAccess="true") | |
Protected Member Functions | |
| virtual void | OnPress_Implementation (const FGeometry &ComponentGeometry, const FPointerEvent &PointerEvent) override |
| virtual void | OnMove_Implementation (const FGeometry &ComponentGeometry, const FPointerEvent &PointerEvent) override |
| virtual void | OnRelease_Implementation (const FGeometry &ComponentGeometry, const FPointerEvent &PointerEvent) override |
| virtual void | OnTick_Implementation (const FGeometry &ComponentGeometry, const FPointerEvent &PointerEvent, const double InCurrentTime, const float InDeltaTime) override |
| Protected Member Functions inherited from UJoystickLogic | |
| virtual void | CalculateThumbPosition (const FGeometry &ComponentGeometry, const FPointerEvent &PointerEvent) |
Additional Inherited Members | |
| Protected Attributes inherited from UJoystickLogic | |
| Transient TWeakObjectPtr< UComponentDecorator > | ThumbstickLayerRef |
| FVector2D | RawValue |
| FVector2D | ThumbPosition |
| FVector2D | ClampedThumbPosition |
| float | LastAngleDelta |
| FVector2D | LastNormalizedOffset |
| float | LastRotation |
| UAdvancedJoystickLogic::UAdvancedJoystickLogic | ( | ) |
|
overridevirtual |
Reimplemented from UJoystickLogic.
|
inline |
| void UAdvancedJoystickLogic::LockThumb | ( | ) |
| void UAdvancedJoystickLogic::LockThumbAtDesiredPosition | ( | const FVector2D | LockPosition, |
| const bool | bClamp = true ) |
|
overrideprotectedvirtual |
Reimplemented from UJoystickLogic.
|
overrideprotectedvirtual |
Reimplemented from UJoystickLogic.
|
overrideprotectedvirtual |
Reimplemented from UJoystickLogic.
|
overrideprotectedvirtual |
| void UAdvancedJoystickLogic::UnlockThumb | ( | ) |
| BlueprintReadOnly uint8 UAdvancedJoystickLogic::bAlwaysDisplaySprintLayer |
| BlueprintReadOnly uint8 UAdvancedJoystickLogic::bAutoSprint |
| UAdvancedJoystickLogic::BlueprintReadOnly |
| BlueprintReadOnly uint8 UAdvancedJoystickLogic::bRecenterThumbstickAfterLock |
| UAdvancedJoystickLogic::Category ="Joystick|Advanced" |
Lock thumb position at current position. Implies that the input is continuously injected unless the current position is zero.
Lock thumb position at desired position. Implies that the input is continuously injected unless the desired position is zero.
Unlock thumb position. Implies that the input injected is stopped even if current position is different to zero.
Check to enable auto move functionality The joystick can be held in one direction to trigger automatic movement
The minimum value of joystick (vector length) to trigger auto move.
The max value tolerated for auto move detection (AngleDelta When Hold). A value of 0.98 seems correct with Fingers. Use a value of 1 for mouse.
The amount of time in seconds you hold a joystick to one direction before it trigger auto move. A value of 0 disable this feature
Check to enable drag to sprint functionality. The thumbstick can be moved forward outside the component geometry to trigger the sprint.
The minimum drag length in pixel (Y axis, vertical) to start the sprint This should be superior to half component size (Y)
The max value in X axis (horizontal) tolerated for DragToSprint detection (Length). If the joystick exceeds this value, then the drag to sprint event is not launched A value of 40 seems correct
The minimum drag length in pixel (Y axis, vertical) to lock input to DragToSprint when finger's user end touch Also used for sprint layer relative location
| UAdvancedJoystickLogic::EditAnywhere |
| UAdvancedJoystickLogic::meta |
| BlueprintReadOnly UInputAction* UAdvancedJoystickLogic::SprintInputAction |