Game Control Plus
1.2.2
|
Public Member Functions | |
Identifier | getIdentifier () |
boolean | isAnalog () |
float | getDeadZone () |
final float | getPollData () |
final float | getEventValue () |
final void | setEventValue (float event_value) |
String | getName () |
String | toString () |
Public Member Functions inherited from net.java.games.input.Component | |
abstract boolean | isRelative () |
Protected Member Functions | |
AbstractComponent (String name, Identifier id) | |
abstract float | poll () throws IOException |
Package Functions | |
final void | setPollData (float value) |
Private Attributes | |
final String | name |
final Identifier | id |
float | value |
float | event_value |
Skeleton implementation of a named axis.
|
protected |
Protected constructor
name | A name for the axis |
|
virtual |
Returns the suggested dead zone for this axis. Dead zone is the amount polled data can vary before considered a significant change in value. An application can safely ignore changes less than this value in the positive or negative direction.
Implements net.java.games.input.Component.
Reimplemented in net.java.games.input.LinuxComponent, and net.java.games.input.DIComponent.
|
virtual |
Returns the type or identifier of the axis.
Implements net.java.games.input.Component.
|
virtual |
Returns a human-readable name for this axis.
Implements net.java.games.input.Component.
|
virtual |
Returns the data from the last time the control has been polled. If this axis is a button, the value returned will be either 0.0f or 1.0f. If this axis is normalized, the value returned will be between -1.0f and 1.0f.
Implements net.java.games.input.Component.
|
virtual |
Returns whether or not the axis is analog, or false if it is digital.
Implements net.java.games.input.Component.
Reimplemented in net.java.games.input.RawMouse.Button, net.java.games.input.RawMouse.Axis, net.java.games.input.RawKeyboard.Key, net.java.games.input.DIComponent, net.java.games.input.LinuxComponent, net.java.games.input.OSXComponent, and net.java.games.input.LinuxJoystickAxis.
String net.java.games.input.AbstractComponent.toString | ( | ) |
Returns a non-localized string description of this axis.
|
private |
Human-readable name for this Axis