UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SVirtualJoystick::FControlData Struct Reference

#include <SVirtualJoystick.h>

Public Member Functions

SLATE_API void Reset ()
 

Public Attributes

FControlInfo Info
 
FVector2D ThumbPosition = FVector2D::ZeroVector
 
FVector2D VisualCenter = FVector2D::ZeroVector
 
FVector2D CorrectedCenter = FVector2D::ZeroVector
 
FVector2D CorrectedVisualSize = FVector2D::ZeroVector
 
FVector2D CorrectedThumbSize = FVector2D::ZeroVector
 
FVector2D CorrectedInteractionSize = FVector2D::ZeroVector
 
FVector2D CorrectedInputScale = FVector2D::ZeroVector
 
int32 CapturedPointerIndex = -1
 
float ElapsedTime = 0.0f
 
FVector2D NextCenter = FVector2D::ZeroVector
 
bool bSendOneMoreEvent = false
 
bool bHasBeenPositioned = false
 
bool bNeedUpdatedCenter = false
 

Detailed Description

The settings and current state of each zone we render

Member Function Documentation

◆ Reset()

void SVirtualJoystick::FControlData::Reset ( )

Reset the control to a centered/inactive state

Member Data Documentation

◆ bHasBeenPositioned

bool SVirtualJoystick::FControlData::bHasBeenPositioned = false

Whether or not we need position the control against the geometry

◆ bNeedUpdatedCenter

bool SVirtualJoystick::FControlData::bNeedUpdatedCenter = false

Whether or not to update center position

◆ bSendOneMoreEvent

bool SVirtualJoystick::FControlData::bSendOneMoreEvent = false

Whether or not to send one last "release" event next tick

◆ CapturedPointerIndex

int32 SVirtualJoystick::FControlData::CapturedPointerIndex = -1

Which pointer index is interacting with this control right now, or -1 if not interacting

◆ CorrectedCenter

FVector2D SVirtualJoystick::FControlData::CorrectedCenter = FVector2D::ZeroVector

The corrected actual center of the control

◆ CorrectedInputScale

FVector2D SVirtualJoystick::FControlData::CorrectedInputScale = FVector2D::ZeroVector

The corrected scale for control input

◆ CorrectedInteractionSize

FVector2D SVirtualJoystick::FControlData::CorrectedInteractionSize = FVector2D::ZeroVector

The corrected size of a the interactable area around Center

◆ CorrectedThumbSize

FVector2D SVirtualJoystick::FControlData::CorrectedThumbSize = FVector2D::ZeroVector

The corrected size of the thumb that can be re-centered within InteractionSize area

◆ CorrectedVisualSize

FVector2D SVirtualJoystick::FControlData::CorrectedVisualSize = FVector2D::ZeroVector

The corrected size of a joystick that can be re-centered within InteractionSize area

◆ ElapsedTime

float SVirtualJoystick::FControlData::ElapsedTime = 0.0f

Time to activate joystick

◆ Info

FControlInfo SVirtualJoystick::FControlData::Info

Control settings

◆ NextCenter

FVector2D SVirtualJoystick::FControlData::NextCenter = FVector2D::ZeroVector

Visual center to be updated

◆ ThumbPosition

FVector2D SVirtualJoystick::FControlData::ThumbPosition = FVector2D::ZeroVector

The position of the thumb, in relation to the VisualCenter

◆ VisualCenter

FVector2D SVirtualJoystick::FControlData::VisualCenter = FVector2D::ZeroVector

For recentered joysticks, this is the re-center location


The documentation for this struct was generated from the following files: