AbstractController
, Keyboard
, Mouse
public interface Controller
Modifier and Type | Interface | Description |
---|---|---|
static class |
Controller.PortType |
Common controller port types.
|
static class |
Controller.Type |
Types of controller objects.
|
Modifier and Type | Method | Description |
---|---|---|
Component |
getComponent(Component.Identifier id) |
Returns a single axis based on its type, or null
if no axis with the specified type could be found.
|
Component[] |
getComponents() |
Returns the components on this controller, in order of assignment priority.
|
Controller[] |
getControllers() |
Returns the controllers connected to make up this controller, or
an empty array if this controller contains no child controllers.
|
EventQueue |
getEventQueue() |
Get the device event queue
|
java.lang.String |
getName() |
Returns a human-readable name for this Controller.
|
int |
getPortNumber() |
Returns the zero-based port number for this Controller.
|
Controller.PortType |
getPortType() |
Returns the port type for this Controller.
|
Rumbler[] |
getRumblers() |
Returns the rumblers for sending feedback to this controller, or an
empty array if there are no rumblers on this controller.
|
Controller.Type |
getType() |
Returns the type of the Controller.
|
boolean |
poll() |
Polls axes for data.
|
void |
setEventQueueSize(int size) |
Initialized the controller event queue to a new size.
|
Controller[] getControllers()
Controller.Type getType()
Component[] getComponents()
Component getComponent(Component.Identifier id)
Rumbler[] getRumblers()
boolean poll()
void setEventQueueSize(int size)
EventQueue getEventQueue()
Controller.PortType getPortType()
int getPortNumber()
java.lang.String getName()
Copyright © 2018. All rights reserved.