Touch Interface Designer 2025.2
Create touch interface with a visual editor and manage all mobile inputs like gestures
Loading...
Searching...
No Matches
UAdvancedJoystickLogic Class Reference

#include <AdvancedJoystickLogic.h>

Inheritance diagram for UAdvancedJoystickLogic:
Collaboration diagram for UAdvancedJoystickLogic:

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 UComponentDecoratorGetThumbstickLayer () 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< UComponentDecoratorThumbstickLayerRef
FVector2D RawValue
FVector2D ThumbPosition
FVector2D ClampedThumbPosition
float LastAngleDelta
FVector2D LastNormalizedOffset
float LastRotation

Constructor & Destructor Documentation

◆ UAdvancedJoystickLogic()

UAdvancedJoystickLogic::UAdvancedJoystickLogic ( )

Member Function Documentation

◆ Initialize_Implementation()

void UAdvancedJoystickLogic::Initialize_Implementation ( )
overridevirtual

Reimplemented from UJoystickLogic.

◆ IsLocked()

BlueprintCallable bool UAdvancedJoystickLogic::IsLocked ( ) const
inline

◆ LockThumb()

void UAdvancedJoystickLogic::LockThumb ( )

◆ LockThumbAtDesiredPosition()

void UAdvancedJoystickLogic::LockThumbAtDesiredPosition ( const FVector2D LockPosition,
const bool bClamp = true )

◆ OnMove_Implementation()

void UAdvancedJoystickLogic::OnMove_Implementation ( const FGeometry & ComponentGeometry,
const FPointerEvent & PointerEvent )
overrideprotectedvirtual

Reimplemented from UJoystickLogic.

◆ OnPress_Implementation()

void UAdvancedJoystickLogic::OnPress_Implementation ( const FGeometry & ComponentGeometry,
const FPointerEvent & PointerEvent )
overrideprotectedvirtual

Reimplemented from UJoystickLogic.

◆ OnRelease_Implementation()

void UAdvancedJoystickLogic::OnRelease_Implementation ( const FGeometry & ComponentGeometry,
const FPointerEvent & PointerEvent )
overrideprotectedvirtual

Reimplemented from UJoystickLogic.

◆ OnTick_Implementation()

void UAdvancedJoystickLogic::OnTick_Implementation ( const FGeometry & ComponentGeometry,
const FPointerEvent & PointerEvent,
const double InCurrentTime,
const float InDeltaTime )
overrideprotectedvirtual

◆ UnlockThumb()

void UAdvancedJoystickLogic::UnlockThumb ( )

Member Data Documentation

◆ bAlwaysDisplaySprintLayer

BlueprintReadOnly uint8 UAdvancedJoystickLogic::bAlwaysDisplaySprintLayer

◆ bAutoSprint

BlueprintReadOnly uint8 UAdvancedJoystickLogic::bAutoSprint

◆ BlueprintReadOnly

UAdvancedJoystickLogic::BlueprintReadOnly

◆ bRecenterThumbstickAfterLock

BlueprintReadOnly uint8 UAdvancedJoystickLogic::bRecenterThumbstickAfterLock

◆ Category

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

◆ EditAnywhere

UAdvancedJoystickLogic::EditAnywhere

◆ meta

UAdvancedJoystickLogic::meta
Initial value:
=(ClampMin=0.0f, ClampMax=1.0f, UIMin=0.0f, UIMax=1.0f))
uint8 bAutoMove:1

◆ SprintInputAction

BlueprintReadOnly UInputAction* UAdvancedJoystickLogic::SprintInputAction

The documentation for this class was generated from the following files:
  • D:/MEGA/TouchProject/TouchProjectNext/Plugins/TouchInterfaceDesigner/Source/TouchInterface/Public/Logics/AdvancedJoystickLogic.h
  • D:/MEGA/TouchProject/TouchProjectNext/Plugins/TouchInterfaceDesigner/Source/TouchInterface/Private/Logics/AdvancedJoystickLogic.cpp