Choose your operating system:
Windows
macOS
Linux
| FSlateControlledConstruction | ||||||
| TSharedFromThis
|
Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Input/SVirtualJoystick.h |
Include |
#include "Widgets/Input/SVirtualJoystick.h" |
class SVirtualJoystick : public SLeafWidget
A virtual joystsick
Name | Description | ||
---|---|---|---|
|
float |
ActivationDelay |
|
|
float |
ActiveOpacity |
Global settings from the UTouchInterface |
|
uint32: 1 |
bCenterOnEvent |
If true, this zone will have it's "center" set when you touch it, otherwise the center will be set to the center of the zone |
|
uint32: 1 |
bPreventReCenter |
If true, ignore re-centering |
|
uint32: 1 |
bVisible |
True if the joystick should be visible |
|
TControlArray< ... |
Controls |
List of controls set by the UTouchInterface |
|
float |
Countdown |
Countdown until next state change |
|
float |
CurrentOpacity |
Target opacity |
|
float |
InactiveOpacity |
|
|
float |
PreviousScalingFactor |
Last used scaling value for |
|
float |
StartupDelay |
|
|
State |
The current state of all controls |
|
|
float |
TimeUntilDeactive |
|
|
float |
TimeUntilReset |
Name | Description | ||
---|---|---|---|
|
AddControl ( |
||
|
AlignBoxIntoScreen |
||
|
ClearControls() |
||
|
ComputeThumbPosition |
||
|
Construct ( |
||
|
float |
GetBaseOpacity() |
Return the target opacity to lerp to given the current state |
|
HandleDisplayMetricsChanged ( |
Callback for handling display metrics changes. |
|
|
HandleTouch |
Process a touch event (on movement and possibly on initial touch) |
|
|
SetControls ( |
||
|
SetGlobalParameters ( |
Sets parameters that control all controls |
|
|
SetJoystickVisibility |
Shows or hides the controls (for instance during cinematics) |
|
|
ShouldDisplayTouchInterface() |
Static function to return if external users should create/activate/etc a touch interface |
Name | Description | ||
---|---|---|---|
|
ComputeDesiredSize ( |
Overwritten from SWidget. |
|
|
OnPaint ( |
Overwritten from SWidget. |
|
|
OnTouchEnded ( |
Called when a touchpad touch is ended (finger lifted) |
|
|
OnTouchMoved ( |
Called when a touchpad touch is moved (finger moved) |
|
|
OnTouchStarted ( |
Called when a touchpad touch is started (finger down) |
|
|
SupportsKeyboardFocus() |
Checks to see if this widget supports keyboard focus. Override this in derived classes. |
|
|
Tick ( |
Ticks this widget with Geometry. |
Name |
Description |
|
---|---|---|
|
FArguments |
|
|
FControlData |
The settings and current state of each zone we render |
|
FControlInfo |
The settings of each zone we render |
Name |
Description |
|
---|---|---|
|
EVirtualJoystickState |
Name |
Description |
---|---|
TControlArray |
TArray specialization for controls. |