public class GamepadEntityController<T extends IMobileEntity> extends MovementController<T>
Constructor and Description |
---|
GamepadEntityController(T entity,
boolean rotateWithRightStick) |
Modifier and Type | Method and Description |
---|---|
double |
getGamepadDeadzone() |
double |
getGamepadRightStick() |
boolean |
isRotateWithRightStick() |
void |
setLeftStickDeadzone(double gamePadDeadzone) |
void |
setRightStickDeadzone(double gamePadRightStick) |
void |
setRotateWithRightStick(boolean rotateWithRightStick) |
void |
update()
This method is called by the game loop on all objects that are attached to the loop.
|
apply, attach, decelerateVelocityX, decelerateVelocityY, detach, getActiveForces, getDx, getDy, getEntity, getForce, getStopThreshold, getVelocityX, getVelocityY, handleMovement, isMovedX, isMovedY, isMovementAllowed, moveEntity, onMovementCheck, setDx, setDy, setMovedX, setMovedY, setVelocityX, setVelocityY
public GamepadEntityController(T entity, boolean rotateWithRightStick)
public void update()
IUpdateable
ClientConfiguration
.update
in interface IUpdateable
update
in class MovementController<T extends IMobileEntity>
ClientConfiguration.setMaxFps(int)
public double getGamepadDeadzone()
public double getGamepadRightStick()
public boolean isRotateWithRightStick()
public void setRightStickDeadzone(double gamePadRightStick)
public void setLeftStickDeadzone(double gamePadDeadzone)
public void setRotateWithRightStick(boolean rotateWithRightStick)