Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/SVirtualJoystick
The settings and current state of each zone we render
| Name | FControlData |
| Type | struct |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Input/SVirtualJoystick.h |
| Include Path | #include "Widgets/Input/SVirtualJoystick.h" |
Syntax
struct FControlData
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bHasBeenPositioned | bool | Whether or not we need position the control against the geometry | Widgets/Input/SVirtualJoystick.h | |
| bNeedUpdatedCenter | bool | Whether or not to update center position | Widgets/Input/SVirtualJoystick.h | |
| bSendOneMoreEvent | bool | Whether or not to send one last "release" event next tick | Widgets/Input/SVirtualJoystick.h | |
| CapturedPointerIndex | int32 | Which pointer index is interacting with this control right now, or -1 if not interacting | Widgets/Input/SVirtualJoystick.h | |
| CorrectedCenter | FVector2D | The corrected actual center of the control | Widgets/Input/SVirtualJoystick.h | |
| CorrectedInputScale | FVector2D | The corrected scale for control input | Widgets/Input/SVirtualJoystick.h | |
| CorrectedInteractionSize | FVector2D | The corrected size of a the interactable area around Center | Widgets/Input/SVirtualJoystick.h | |
| CorrectedThumbSize | FVector2D | The corrected size of the thumb that can be re-centered within InteractionSize area | Widgets/Input/SVirtualJoystick.h | |
| CorrectedVisualSize | FVector2D | The corrected size of a joystick that can be re-centered within InteractionSize area | Widgets/Input/SVirtualJoystick.h | |
| ElapsedTime | float | Time to activate joystick | Widgets/Input/SVirtualJoystick.h | |
| Info | FControlInfo | Control settings | Widgets/Input/SVirtualJoystick.h | |
| NextCenter | FVector2D | Visual center to be updated | Widgets/Input/SVirtualJoystick.h | |
| ThumbPosition | FVector2D | The position of the thumb, in relation to the VisualCenter | Widgets/Input/SVirtualJoystick.h | |
| VisualCenter | FVector2D | For recentered joysticks, this is the re-center location | Widgets/Input/SVirtualJoystick.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Reset() |
Reset the control to a centered/inactive state | Widgets/Input/SVirtualJoystick.h |