Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
epoxy
GitHub Repository: epoxy/proj11
Path: blob/master/SLICK_HOME/src/org/newdawn/slick/command/ControllerButtonControl.java
1456 views
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
}
21
22