| Modifier and Type | Field and Description |
|---|---|
| public static final int | AXIS
Indicates the event was caused by a axis |
| public static final int | BUTTON
Indicates the event was caused by a button |
| private boolean | buttonState
True when a button is pressed, if this event was caused by the button |
| private int | index
The index of the input (axis or button) that generated the event |
| public static final int | POVX
Indicates the event was caused by a pov X |
| public static final int | POVY
Indicates the event was caused by a pov Y |
| private Controller | source
The controller generating the event |
| private long | timeStamp
The time stamp of this event |
| private int | type
Type of control that generated the event |
| private boolean | xaxis
True if this event was caused by the x axis |
| private float | xaxisValue
The value on a specified axis, if this event was caused by the x-axis |
| private boolean | yaxis
True if this event was caused by the y axis |
| private float | yaxisValue
The value on a specified axis, if this event was caused by the y-axis |
| Access | Constructor and Description |
|---|---|
| pack-priv | ControllerEvent(Controller
The source of the event source, long The time stamp given for this event timeStamp, int The type of control generating this event type, int The index of the input that generated the event index, boolean True if this event was caused by the x-axis xaxis, boolean True if this event was caused by the y-axis yaxis)Create a new event |
| pack-priv | ControllerEvent(Controller
The source of the event source, long The time stamp given for this event timeStamp, int The type of control generating this event type, int The index of the input that generated the event index, boolean True when a button is pressed, if this event was caused by the button buttonState, boolean True if this event was caused by the x-axis xaxis, boolean True if this event was caused by the y-axis yaxis, float The value on a specified axis, if this event was caused by the x-axis xaxisValue, float The value on a specified axis, if this event was caused by the y-axis yaxisValue)Create a new event |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True when a button is pressed, if this event was caused by the buttonCheck the button is pressed or not, when this event was caused |
| public int | Returns: The index of the control generating this eventGet the index of the control generating this event |
| public Controller | Returns: The controller that generated this eventGet the controller that generated this event |
| public long | |
| public float | Returns: The value on a specified axis, if this event was caused by the x-axisGet the value on an X axis when this event was caused |
| public float | Returns: The value on a specified axis, if this event was caused by the y-axisGet the value on an Y axis when this event was caused |
| public boolean | Returns: True if this event was generated by a axisCheck if this event was generated by a axis |
| public boolean | Returns: True if this event was generated by a buttonCheck if this event was generated by a button |
| public boolean | Returns: True if this event was generated by a povCheck if this event was generated by a pov |
| public boolean | Returns: True if this event was generated by a povCheck if this event was generated by a pov |
| public boolean | Returns: True if this event was caused by the X axisCheck if this event was caused by the X axis |
| public boolean | Returns: True if this event was caused by the Y axisCheck if this event was caused by the Y axis |
| public String |
| AXIS | back to summary |
|---|---|
| public static final int AXIS Indicates the event was caused by a axis | |
| BUTTON | back to summary |
|---|---|
| public static final int BUTTON Indicates the event was caused by a button | |
| buttonState | back to summary |
|---|---|
| private boolean buttonState True when a button is pressed, if this event was caused by the button | |
| index | back to summary |
|---|---|
| private int index The index of the input (axis or button) that generated the event | |
| POVX | back to summary |
|---|---|
| public static final int POVX Indicates the event was caused by a pov X | |
| POVY | back to summary |
|---|---|
| public static final int POVY Indicates the event was caused by a pov Y | |
| source | back to summary |
|---|---|
| private Controller source The controller generating the event | |
| timeStamp | back to summary |
|---|---|
| private long timeStamp The time stamp of this event | |
| type | back to summary |
|---|---|
| private int type Type of control that generated the event | |
| xaxis | back to summary |
|---|---|
| private boolean xaxis True if this event was caused by the x axis | |
| xaxisValue | back to summary |
|---|---|
| private float xaxisValue The value on a specified axis, if this event was caused by the x-axis | |
| yaxis | back to summary |
|---|---|
| private boolean yaxis True if this event was caused by the y axis | |
| yaxisValue | back to summary |
|---|---|
| private float yaxisValue The value on a specified axis, if this event was caused by the y-axis | |
| ControllerEvent | back to summary |
|---|---|
| pack-priv ControllerEvent(Controller source, long timeStamp, int type, int index, boolean xaxis, boolean yaxis) Create a new event
| |
| ControllerEvent | back to summary |
|---|---|
| pack-priv ControllerEvent(Controller source, long timeStamp, int type, int index, boolean buttonState, boolean xaxis, boolean yaxis, float xaxisValue, float yaxisValue) Create a new event
| |
| getButtonState | back to summary |
|---|---|
| public boolean getButtonState() Check the button is pressed or not, when this event was caused
| |
| getControlIndex | back to summary |
|---|---|
| public int getControlIndex() Get the index of the control generating this event
| |
| getSource | back to summary |
|---|---|
| public Controller getSource() Get the controller that generated this event
| |
| getTimeStamp | back to summary |
|---|---|
| public long getTimeStamp() Get the time stamp given for this event. As with nanoTime() this value means nothing other than giving ordering
| |
| getXAxisValue | back to summary |
|---|---|
| public float getXAxisValue() Get the value on an X axis when this event was caused
| |
| getYAxisValue | back to summary |
|---|---|
| public float getYAxisValue() Get the value on an Y axis when this event was caused
| |
| isAxis | back to summary |
|---|---|
| public boolean isAxis() Check if this event was generated by a axis
| |
| isButton | back to summary |
|---|---|
| public boolean isButton() Check if this event was generated by a button
| |
| isPovX | back to summary |
|---|---|
| public boolean isPovX() Check if this event was generated by a pov
| |
| isPovY | back to summary |
|---|---|
| public boolean isPovY() Check if this event was generated by a pov
| |
| isXAxis | back to summary |
|---|---|
| public boolean isXAxis() Check if this event was caused by the X axis
| |
| isYAxis | back to summary |
|---|---|
| public boolean isYAxis() Check if this event was caused by the Y axis
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |