public class JoystickInput extends java.lang.Object implements IPattern, IJoystickListener
Constructor and Description |
---|
JoystickInput(float distanceToForceMapping) |
Modifier and Type | Method and Description |
---|---|
Vector3 |
apply(IVehicle vehicle) |
void |
onJoystickActivated()
The user started using the joystick
|
void |
onJoystickDeactivated()
The user stopped using the joystick
|
void |
onJoystickMoved(Vector2 movement)
The joystick was moved. movement is the relative point to the basepoint of the joystick
|
public void onJoystickActivated()
IJoystickListener
onJoystickActivated
in interface IJoystickListener
public void onJoystickDeactivated()
IJoystickListener
onJoystickDeactivated
in interface IJoystickListener
public void onJoystickMoved(Vector2 movement)
IJoystickListener
onJoystickMoved
in interface IJoystickListener