Class GamepadEntityController<T extends IMobileEntity>
java.lang.Object
de.gurkenlabs.litiengine.physics.MovementController<T>
de.gurkenlabs.litiengine.input.GamepadEntityController<T>
- All Implemented Interfaces:
IEntityController, IUpdateable, IMovementController
-
Field Summary
Fields inherited from interface IUpdateable
DEFAULT_UPDATE_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledoublebooleanvoidsetLeftStickDeadzone(double gamePadDeadzone) voidsetRightStickDeadzone(double gamePadRightStick) voidsetRotateWithRightStick(boolean rotateWithRightStick) voidupdate()This method is called by the game loop on all objects that are attached to the loop.Methods inherited from class MovementController
apply, attach, detach, getActiveForces, getDx, getDy, getEntity, getForce, getMoveAngle, getVelocity, handleMovement, isMovementAllowed, moveEntity, onMovementCheck, setDx, setDy, setVelocityMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IUpdateable
getUpdatePriority
-
Constructor Details
-
GamepadEntityController
-
-
Method Details
-
update
public void update()Description copied from interface:IUpdateableThis method is called by the game loop on all objects that are attached to the loop. It's called on every tick of the loop and the frequency can be configured using theClientConfiguration.- Specified by:
updatein interfaceIUpdateable- Overrides:
updatein classMovementController<T extends IMobileEntity>- See Also:
-
getGamepadDeadzone
public double getGamepadDeadzone() -
getGamepadRightStick
public double getGamepadRightStick() -
isRotateWithRightStick
public boolean isRotateWithRightStick() -
setRightStickDeadzone
public void setRightStickDeadzone(double gamePadRightStick) -
setLeftStickDeadzone
public void setLeftStickDeadzone(double gamePadDeadzone) -
setRotateWithRightStick
public void setRotateWithRightStick(boolean rotateWithRightStick)
-