View Javadoc
1   package org.newdawn.slick.command;
2   
3   /**
4    * A control indicating that a gamepad/joystick button must be pressed
5    * or released to invoke an command.
6    *
7    * @author kevin
8    */
9   public class ControllerButtonControl extends ControllerControl {
10  
11      /**
12       * Create a new control based on a controller input.
13       *
14       * @param controllerIndex The index of the controller to listen to
15       * @param button The index of the button that causes the command
16       */
17      public ControllerButtonControl(int controllerIndex, int button) {
18          super(controllerIndex, BUTTON_EVENT, button);
19      }
20  }