Skip to main content

Axis

class Axis

They represent virtual axes, as in a Joystick for example that has two axes and the values of their respective axes, which is represented by the Axis.


public class Axis

— Constructors (1) —

ConstructorDescription
Axis(String name)Creates a new Axis with the name defined to be "name" argument.

— Methods (3) —

NameDescription
Vector2 getValue()Returns the Axis values.
void setValue(Vector2 value)Sets the Axis values to be "value" argument.
String getName()Returns the Axis name.