SUIJoystick
class SUIJoystick
Virtual joysticks, can be modified as you wish.
See the SUIJoystick component topic to learn more about SUIJoystick.
public class SUIJoystick extends Component
— Constructors (1) —
| Constructor | Description |
|---|---|
| SUIJoystick() | Creates a new SUIJoystick. |
— Methods (19) —
| Name | Description |
|---|---|
| float getLerp() | Returns the current SUIJoystick smoothing value. |
| void setLerp(float value) | Sets the current SUIJoystick smoothing value to be "value" argument. |
| Vector2 getValue() | Returns the current values of the SUIJoystick, axes. |
| void setValue(Vector2 value) | Sets the current values of the SUIJoystick axes to be "value" argument. |
| String getAxisName() | Returns the current Axis name of the SUIJoystick. |
| void setAxisName(String value) | Sets the current Axis name of the SUIJoystick to be "name" argument. |
| Axis getAxis() | Returns the current Axis of the SUIJoystick. |
| void setAxis(Axis value) | Sets the current Axis of the SUIJoystick to be "axis" argument. |
| boolean isSpherical() | Returns true if the SUIJoystick has the "Spherical" option checked, false if not. |
| void setSpherical(boolean value) | Defines if the SUIJoystick will have the "Spherical" option checked or unchecked, to be "value" argument. |
| boolean isPressed() | Returns true if the SUIJoystick is being pressed, false if not. |
| boolean isDown() | Returns true if the SUIJoystick was pressed, false if not. |
| boolean isUp() | Returns true if the SUIJoystick was pressed and released, false if not. |
| boolean isClickable() | Returns true if the SUIJoystick has the "Clickable" option checked, false if not. |
| void setClickable(boolean value) | Defines if the SUIJoystick will have the "Clickable" option checked or unchecked to be "value" argument. |
| STargetRect getTargetRectType() | Returns the current Target("MySelf", "Parent" or "Other") type of the SUIJoystick. |
| void setTargetRectType(STargetRect value) | Sets the current Target("MySelf", "Parent" or "Other") type of the SUIJoystick to be "value" argument. |
| SpatialObject getTargetRectObject() | Returns the current type of Target("MySelf", "Parent" or "Other") along with SUIJoystick's SpatialObject. |
| void setTargetRectObject(SpatialObject object) | Sets the current Target("MySelf", "Parent" or "Other") type of the SpatialObject passed to be "object" argument. |