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 FControlInfo
Remarks
The settings of each zone we render
Variables
| Type | Name | Description | |
|---|---|---|---|
| FKey | AltInputKey | The secondary input (for sticks, this is the vertical/Y input, unused for buttons) | |
| bool | bTreatAsButton | If true, this joystick will be treated as a simple press-release button | |
| FVector2D | Center | The actual center of the control | |
| TSharedPtr< ISlateBrushSource > | Image1 | The brush to use to draw the background for joysticks, or unclicked for buttons | |
| TSharedPtr< ISlateBrushSource > | Image2 | The brush to use to draw the thumb for joysticks, or clicked for buttons | |
| FVector2D | InputScale | The scale for control input | |
| FVector2D | InteractionSize | The size of a the interactable area around Center | |
| FKey | MainInputKey | The input to send from this control (for sticks, this is the horizontal/X input) | |
| FVector2D | ThumbSize | The size of the thumb that can be re-centered within InteractionSize area | |
| FVector2D | VisualSize | The size of a joystick that can be re-centered within InteractionSize area |