|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.command.ControllerDirectionControl
public class ControllerDirectionControl
A control indicating that a particular direction must be pressed or released on a controller to cause the command to fire
| Field Summary | |
|---|---|
protected static int |
BUTTON_EVENT
Indicates a button was pressed |
static org.newdawn.slick.command.ControllerDirectionControl.Direction |
DOWN
The direction indicating we're waiting for the user to press down |
protected static int |
DOWN_EVENT
Indicates down was pressed |
static org.newdawn.slick.command.ControllerDirectionControl.Direction |
LEFT
The direction indicating we're waiting for the user to press left |
protected static int |
LEFT_EVENT
Indicates left was pressed |
static org.newdawn.slick.command.ControllerDirectionControl.Direction |
RIGHT
The direction indicating we're waiting for the user to press right |
protected static int |
RIGHT_EVENT
Indicates right was pressed |
static org.newdawn.slick.command.ControllerDirectionControl.Direction |
UP
The direction indicating we're waiting for the user to press up |
protected static int |
UP_EVENT
Indicates up was pressed |
| Constructor Summary | |
|---|---|
ControllerDirectionControl(int controllerIndex,
org.newdawn.slick.command.ControllerDirectionControl.Direction dir)
Create a new input that indicates a direcitonal control must be pressed |
|
| 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 |
|---|
public static final org.newdawn.slick.command.ControllerDirectionControl.Direction LEFT
public static final org.newdawn.slick.command.ControllerDirectionControl.Direction UP
public static final org.newdawn.slick.command.ControllerDirectionControl.Direction DOWN
public static final org.newdawn.slick.command.ControllerDirectionControl.Direction RIGHT
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 ControllerDirectionControl(int controllerIndex,
org.newdawn.slick.command.ControllerDirectionControl.Direction dir)
controllerIndex - The index of the controller to listen todir - The direction to wait for| 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 | |||||||||