org.newdawn.slick.command
Class ControllerDirectionControl

java.lang.Object
  extended by org.newdawn.slick.command.ControllerDirectionControl
All Implemented Interfaces:
Control

public class ControllerDirectionControl
extends java.lang.Object

A control indicating that a particular direction must be pressed or released on a controller to cause the command to fire

Author:
kevin

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

LEFT

public static final org.newdawn.slick.command.ControllerDirectionControl.Direction LEFT
The direction indicating we're waiting for the user to press left


UP

public static final org.newdawn.slick.command.ControllerDirectionControl.Direction UP
The direction indicating we're waiting for the user to press up


DOWN

public static final org.newdawn.slick.command.ControllerDirectionControl.Direction DOWN
The direction indicating we're waiting for the user to press down


RIGHT

public static final org.newdawn.slick.command.ControllerDirectionControl.Direction RIGHT
The direction indicating we're waiting for the user to press right


BUTTON_EVENT

protected static final int BUTTON_EVENT
Indicates a button was pressed

See Also:
Constant Field Values

LEFT_EVENT

protected static final int LEFT_EVENT
Indicates left was pressed

See Also:
Constant Field Values

RIGHT_EVENT

protected static final int RIGHT_EVENT
Indicates right was pressed

See Also:
Constant Field Values

UP_EVENT

protected static final int UP_EVENT
Indicates up was pressed

See Also:
Constant Field Values

DOWN_EVENT

protected static final int DOWN_EVENT
Indicates down was pressed

See Also:
Constant Field Values
Constructor Detail

ControllerDirectionControl

public ControllerDirectionControl(int controllerIndex,
                                  org.newdawn.slick.command.ControllerDirectionControl.Direction dir)
Create a new input that indicates a direcitonal control must be pressed

Parameters:
controllerIndex - The index of the controller to listen to
dir - The direction to wait for
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()


Copyright © 2006 New Dawn Software. All Rights Reserved.