Modifier and Type | Class | Description |
---|---|---|
class |
AbstractController |
An AbstractController is a skeleton implementation of a controller that
contains a fixed number of axes, controllers, and rumblers.
|
class |
Keyboard |
A Keyboard is a type of controller consisting of a single controller,
they keypad, which contains several axes (the keys).
|
class |
Mouse |
A Mouse is a type of controller consisting of two child controllers,
a ball and a button pad.
|
Modifier and Type | Method | Description |
---|---|---|
Controller |
ControllerEvent.getController() |
Returns the controller for this event.
|
Controller[] |
AbstractController.getControllers() |
Returns the controllers connected to make up this controller, or
an empty array if this controller contains no child controllers.
|
Controller[] |
Controller.getControllers() |
Returns the controllers connected to make up this controller, or
an empty array if this controller contains no child controllers.
|
abstract Controller[] |
ControllerEnvironment.getControllers() |
Returns a list of all controllers available to this environment,
or an empty array if there are no controllers in this environment.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
ControllerEnvironment.fireControllerAdded(Controller c) |
Creates and sends an event to the controller listeners that a controller
has been added.
|
protected void |
ControllerEnvironment.fireControllerRemoved(Controller c) |
Creates and sends an event to the controller listeners that a controller
has been lost.
|
Constructor | Description |
---|---|
AbstractController(java.lang.String name,
Component[] components,
Controller[] children,
Rumbler[] rumblers) |
Protected constructor for a controller containing the specified
axes, child controllers, and rumblers
|
ControllerEvent(Controller c) |
Creates a controller event object.
|
Keyboard(java.lang.String name,
Component[] keys,
Controller[] children,
Rumbler[] rumblers) |
Protected constructor.
|
Mouse(java.lang.String name,
Component[] components,
Controller[] children,
Rumbler[] rumblers) |
Copyright © 2018. All rights reserved.