|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.command.ControllerButtonControl
public class ControllerButtonControl
A control indicating that a gamepad/joystick button must be pressed or released to invoke an command.
| Field Summary | |
|---|---|
protected static int |
BUTTON_EVENT
Indicates a button was pressed |
protected static int |
DOWN_EVENT
Indicates down was pressed |
protected static int |
LEFT_EVENT
Indicates left was pressed |
protected static int |
RIGHT_EVENT
Indicates right was pressed |
protected static int |
UP_EVENT
Indicates up was pressed |
| Constructor Summary | |
|---|---|
ControllerButtonControl(int controllerIndex,
int button)
Create a new control based on a controller input |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int BUTTON_EVENT
protected static final int LEFT_EVENT
protected static final int RIGHT_EVENT
protected static final int UP_EVENT
protected static final int DOWN_EVENT
| Constructor Detail |
|---|
public ControllerButtonControl(int controllerIndex,
int button)
controllerIndex - The index of the controller to listen tobutton - The index of the button that causes the command| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||