Beispiel #1
0
  public static Controller getPressedController() {
    Controller a = new Controller();
    a.dpad_up = ButtonState.HELD;
    a.dpad_down = ButtonState.HELD;
    a.dpad_left = ButtonState.HELD;
    a.dpad_right = ButtonState.HELD;
    a.a = ButtonState.HELD;
    a.b = ButtonState.HELD;
    a.x = ButtonState.HELD;
    a.y = ButtonState.HELD;
    a.guide = ButtonState.HELD;
    a.start = ButtonState.HELD;
    a.back = ButtonState.HELD;
    a.left_bumper = ButtonState.HELD;
    a.right_bumper = ButtonState.HELD;

    a.left_trigger = 1.0f;
    a.right_trigger = 1.0f;

    a.left_stick_x = 1.0f;
    a.left_stick_y = 1.0f;
    a.right_stick_x = 1.0f;
    a.right_stick_y = 1.0f;
    return a;
  }
Beispiel #2
0
 public static Controller getZeroController() {
   Controller a = new Controller();
   a.reset();
   return a;
 }