public static class SendGamepadEventCommandParams.Axis
Represents a gamepad axis.
| Constructor and Description |
|---|
Axis(double x,
double y,
Axis.Type type)
Represents a gamepad axis.
|
| Modifier and Type | Method and Description |
|---|---|
Axis.Type |
getType()
The axis type.
|
double |
getX()
The horizontal axis value,
|
double |
getY()
The vertical axis value,
|
public Axis(double x,
double y,
@NotNull
Axis.Type type)
Represents a gamepad axis.
x - The horizontal axis value, ranging from -1.0 (left) to 1.0 (right).y - The vertical axis value, ranging from -1.0 (up) to 1.0 (down).type - The axis type.public double getX()
The horizontal axis value,
ranging from -1.0 (left) to 1.0 (right).
public double getY()
The vertical axis value,
ranging from -1.0 (up) to 1.0 (down).
@NotNull public Axis.Type getType()
The axis type.