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