public class GamepadEntityController<T extends IMobileEntity> extends AccelerationMovementController<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 need to update
their attributes.
|
decellerateVelocityX, decellerateVelocityY, getDx, getDy, getStopThreshold, getVelocityX, getVelocityY, isMovedX, isMovedY, setDx, setDy, setMovedX, setMovedY, setVelocityX, setVelocityYapply, attach, detach, getActiveForces, getEntity, isMovementAllowed, moveEntity, onMoved, onMovementCheckpublic GamepadEntityController(T entity, boolean rotateWithRightStick)
public void update()
IUpdateableupdate in interface IUpdateableupdate in class AccelerationMovementController<T extends IMobileEntity>public double getGamePadDeadzone()
public double getGamePadRightStick()
public boolean isRotateWithRightStick()
public void setRightStickDeadzone(double gamePadRightStick)
public void setLeftStickDeadzone(double gamePadDeadzone)
public void setRotateWithRightStick(boolean rotateWithRightStick)