Uses of Interface
net.java.games.input.Controller
-
Uses of Controller in net.java.games.input
Classes in net.java.games.input that implement ControllerModifier and TypeClassDescriptionclass
An AbstractController is a skeleton implementation of a controller that contains a fixed number of axes, controllers, and rumblers.class
A Keyboard is a type of controller consisting of a single controller, they keypad, which contains several axes (the keys).class
A Mouse is a type of controller consisting of two child controllers, a ball and a button pad.Methods in net.java.games.input that return ControllerModifier and TypeMethodDescriptionControllerEvent.getController()
Returns the controller for this event.final Controller[]
AbstractController.getControllers()
Returns the controllers connected to make up this controller, or an empty array if this controller contains no child controllers.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.Methods in net.java.games.input with parameters of type ControllerModifier and TypeMethodDescriptionprotected 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.Constructors in net.java.games.input with parameters of type ControllerModifierConstructorDescriptionprotected
AbstractController
(String name, Component[] components, Controller[] children, Rumbler[] rumblers) Protected constructor for a controller containing the specified axes, child controllers, and rumblersCreates a controller event object.protected
Keyboard
(String name, Component[] keys, Controller[] children, Rumbler[] rumblers) Protected constructor.protected
Mouse
(String name, Component[] components, Controller[] children, Rumbler[] rumblers)