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 TypeClassDescriptionclassAn AbstractController is a skeleton implementation of a controller that contains a fixed number of axes, controllers, and rumblers.classA Keyboard is a type of controller consisting of a single controller, they keypad, which contains several axes (the keys).classA 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 voidControllerEnvironment.fireControllerAdded(Controller c) Creates and sends an event to the controller listeners that a controller has been added.protected voidControllerEnvironment.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 ControllerModifierConstructorDescriptionprotectedAbstractController(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.protectedKeyboard(String name, Component[] keys, Controller[] children, Rumbler[] rumblers) Protected constructor.protectedMouse(String name, Component[] components, Controller[] children, Rumbler[] rumblers)