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

#include <SVirtualJoystick.h>

Public Attributes

bool bTreatAsButton = false
 
TSharedPtr< ISlateBrushSourceImage1
 
TSharedPtr< ISlateBrushSourceImage2
 
FVector2D Center = FVector2D::ZeroVector
 
FVector2D VisualSize = FVector2D::ZeroVector
 
FVector2D ThumbSize = FVector2D::ZeroVector
 
FVector2D InteractionSize = FVector2D::ZeroVector
 
FVector2D InputScale = FVector2D(1.f, 1.f)
 
FKey MainInputKey
 
FKey AltInputKey
 

Detailed Description

The settings of each zone we render

Member Data Documentation

◆ AltInputKey

FKey SVirtualJoystick::FControlInfo::AltInputKey

The secondary input (for sticks, this is the vertical/Y input, unused for buttons)

◆ bTreatAsButton

bool SVirtualJoystick::FControlInfo::bTreatAsButton = false

If true, this joystick will be treated as a simple press-release button

◆ Center

FVector2D SVirtualJoystick::FControlInfo::Center = FVector2D::ZeroVector

The actual center of the control

◆ Image1

TSharedPtr< ISlateBrushSource > SVirtualJoystick::FControlInfo::Image1

The brush to use to draw the background for joysticks, or unclicked for buttons

◆ Image2

TSharedPtr< ISlateBrushSource > SVirtualJoystick::FControlInfo::Image2

The brush to use to draw the thumb for joysticks, or clicked for buttons

◆ InputScale

FVector2D SVirtualJoystick::FControlInfo::InputScale = FVector2D(1.f, 1.f)

The scale for control input

◆ InteractionSize

FVector2D SVirtualJoystick::FControlInfo::InteractionSize = FVector2D::ZeroVector

The size of a the interactable area around Center

◆ MainInputKey

FKey SVirtualJoystick::FControlInfo::MainInputKey

The input to send from this control (for sticks, this is the horizontal/X input)

◆ ThumbSize

FVector2D SVirtualJoystick::FControlInfo::ThumbSize = FVector2D::ZeroVector

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

◆ VisualSize

FVector2D SVirtualJoystick::FControlInfo::VisualSize = FVector2D::ZeroVector

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


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