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

public class GamepadEntityController<T extends IMobileEntity> extends MovementController<T>
  • Constructor Details

    • GamepadEntityController

      public GamepadEntityController(T entity, boolean rotateWithRightStick)
  • Method Details

    • update

      public void update()
      Description copied from interface: IUpdateable
      This 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 the ClientConfiguration.
      Specified by:
      update in interface IUpdateable
      Overrides:
      update in class MovementController<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)