| Modifier and Type | Class and Description |
|---|---|
| public static class | Controller.
Common controller port types. |
| public static class | Controller.
Types of controller objects. |
| Modifier and Type | Method and Description |
|---|---|
| public Component | getComponent(Component.
Returns a single axis based on its type, or null if no axis with the specified type could be found. |
| public Component[] | |
| public Controller[] | getControllers()
Returns the controllers connected to make up this controller, or an empty array if this controller contains no child controllers. |
| public EventQueue | |
| public String | |
| public int | |
| public Controller. | |
| public Rumbler[] | getRumblers()
Returns the rumblers for sending feedback to this controller, or an empty array if there are no rumblers on this controller. |
| public Controller. | |
| public boolean | |
| public void |
| getComponent | back to summary |
|---|---|
| public Component getComponent(Component. Returns a single axis based on its type, or null if no axis with the specified type could be found. | |
| getComponents | back to summary |
|---|---|
| public Component[] getComponents() Returns the components on this controller, in order of assignment priority. For example, the button controller on a mouse returns an array containing the primary or leftmost mouse button, followed by the secondary or rightmost mouse button (if present), followed by the middle mouse button (if present). The array returned is an empty array if this controller contains no components (such as a logical grouping of child controllers). | |
| getControllers | back to summary |
|---|---|
| public Controller[] getControllers() Returns the controllers connected to make up this controller, or an empty array if this controller contains no child controllers. The objects in the array are returned in order of assignment priority (primary stick, secondary buttons, etc.). | |
| getEventQueue | back to summary |
|---|---|
| public EventQueue getEventQueue() Get the device event queue | |
| getName | back to summary |
|---|---|
| public String getName() Returns a human-readable name for this Controller. | |
| getPortNumber | back to summary |
|---|---|
| public int getPortNumber() Returns the zero-based port number for this Controller. | |
| getPortType | back to summary |
|---|---|
| public Controller. Returns the port type for this Controller. | |
| getRumblers | back to summary |
|---|---|
| public Rumbler[] getRumblers() Returns the rumblers for sending feedback to this controller, or an empty array if there are no rumblers on this controller. | |
| getType | back to summary |
|---|---|
| public Controller. Returns the type of the Controller. | |
| poll | back to summary |
|---|---|
| public boolean poll() Polls axes for data. Returns false if the controller is no longer valid. Polling reflects the current state of the device when polled. | |
| setEventQueueSize | back to summary |
|---|---|
| public void setEventQueueSize(int size) Initialized the controller event queue to a new size. Existing events in the queue are lost. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Controller. | GAME
Standard game port |
| public static final Controller. | I8042
i8042 |
| private final String | name
Name of port type |
| public static final Controller. | NETWORK
Network port |
| public static final Controller. | PARALLEL
Parallel port |
| public static final Controller. | SERIAL
Serial port |
| public static final Controller. | UNKNOWN
Unknown port type |
| public static final Controller. | USB
USB port |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. |
| GAME | back to summary |
|---|---|
| public static final Controller. Standard game port | |
| I8042 | back to summary |
|---|---|
| public static final Controller. i8042 | |
| name | back to summary |
|---|---|
| private final String name Name of port type | |
| NETWORK | back to summary |
|---|---|
| public static final Controller. Network port | |
| PARALLEL | back to summary |
|---|---|
| public static final Controller. Parallel port | |
| SERIAL | back to summary |
|---|---|
| public static final Controller. Serial port | |
| UNKNOWN | back to summary |
|---|---|
| public static final Controller. Unknown port type | |
| USB | back to summary |
|---|---|
| public static final Controller. USB port | |
| PortType | back to summary |
|---|---|
| protected PortType(String name) Protected constructor | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a non-localized string description of this port type.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Controller. | FINGERSTICK
Fingerstick controller; note that this may be sometimes treated as a type of mouse or stick. |
| public static final Controller. | GAMEPAD
Gamepad controller. |
| public static final Controller. | HEADTRACKER
Headtracker controller. |
| public static final Controller. | KEYBOARD
A keyboard controller |
| public static final Controller. | MOUSE
Mouse controller. |
| private final String | name
Name of controller type |
| public static final Controller. | RUDDER
Rudder controller. |
| public static final Controller. | STICK
Stick controller, such as a joystick or flightstick. |
| public static final Controller. | TRACKBALL
A trackball controller; note that this may sometimes be treated as a type of mouse. |
| public static final Controller. | TRACKPAD
A trackpad, such as a tablet, touchpad, or glidepad; note that this may sometimes be treated as a type of mouse. |
| public static final Controller. | UNKNOWN
Unkown controller type. |
| public static final Controller. | WHEEL
A wheel controller, such as a steering wheel (note that a mouse wheel is considered part of a mouse, not a wheel controller). |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. |
| FINGERSTICK | back to summary |
|---|---|
| public static final Controller. Fingerstick controller; note that this may be sometimes treated as a type of mouse or stick. | |
| GAMEPAD | back to summary |
|---|---|
| public static final Controller. Gamepad controller. | |
| HEADTRACKER | back to summary |
|---|---|
| public static final Controller. Headtracker controller. | |
| KEYBOARD | back to summary |
|---|---|
| public static final Controller. A keyboard controller | |
| MOUSE | back to summary |
|---|---|
| public static final Controller. Mouse controller. | |
| name | back to summary |
|---|---|
| private final String name Name of controller type | |
| RUDDER | back to summary |
|---|---|
| public static final Controller. Rudder controller. | |
| STICK | back to summary |
|---|---|
| public static final Controller. Stick controller, such as a joystick or flightstick. | |
| TRACKBALL | back to summary |
|---|---|
| public static final Controller. A trackball controller; note that this may sometimes be treated as a type of mouse. | |
| TRACKPAD | back to summary |
|---|---|
| public static final Controller. A trackpad, such as a tablet, touchpad, or glidepad; note that this may sometimes be treated as a type of mouse. | |
| UNKNOWN | back to summary |
|---|---|
| public static final Controller. Unkown controller type. | |
| WHEEL | back to summary |
|---|---|
| public static final Controller. A wheel controller, such as a steering wheel (note that a mouse wheel is considered part of a mouse, not a wheel controller). | |
| Type | back to summary |
|---|---|
| protected Type(String name) Protected constructor | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a non-localized string description of this controller type.
| |