|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.lwjgl.input.ControllerEvent
public abstract class ControllerEvent
An event occuring on a controller.
Field Summary | |
---|---|
static int |
AXIS
Indicates the event was caused by an analogue axis: the object is a ControllerAxisEvent (casting is safe). |
static int |
BUTTON
Indicates the event was caused by a button: the object is a ControllerButtonEvent (casting is safe). |
static int |
POVX
Indicates the event was caused by a POV's X axis: the object is a ControllerPovEvent (casting is safe). |
static int |
POVY
Indicates the event was caused by a POV's Y axis: the object is a ControllerPovEvent (casting is safe). |
Method Summary | |
---|---|
int |
getControlIndex()
Get the index of the control generating this event. |
Controller |
getSource()
Get the Controller that generated this event. |
long |
getTimeStamp()
Get the time stamp for this event. |
boolean |
isAxis()
Check if this event was generated by an axis. |
boolean |
isButton()
Check if this event was generated by a button. |
boolean |
isPovX()
Check if this event was generated by a POV's X axis. |
boolean |
isPovY()
Check if this event was generated by a POV's Y axis. |
boolean |
isXAxis()
Check if this event was caused by the X axis. |
boolean |
isYAxis()
Check if this event was caused by the Y axis. |
java.lang.String |
toString()
Returns a String describing the ControllerEvent. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int BUTTON
public static final int AXIS
public static final int POVX
public static final int POVY
Method Detail |
---|
public long getTimeStamp()
public Controller getSource()
public int getControlIndex()
public boolean isButton()
public boolean isAxis()
public boolean isPovX()
public boolean isPovY()
public boolean isXAxis()
public boolean isYAxis()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |