Package com.ardor3d.input.jinput
Class JInputControllerWrapper
java.lang.Object
com.ardor3d.input.jinput.JInputControllerWrapper
- All Implemented Interfaces:
ControllerWrapper
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ardor3d.input.ControllerWrapper
ControllerWrapper.ControllerIterator
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List
<ControllerInfo> protected final net.java.games.input.Event
protected ControllerWrapper.ControllerIterator
protected static boolean
Fields inherited from interface com.ardor3d.input.ControllerWrapper
_upcomingEvents
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ControllerEvent
createControllerEvent
(net.java.games.input.Controller controller, net.java.games.input.Event event) int
getControllerInfo
(int controllerIndex) protected ControllerInfo
getControllerInfo
(net.java.games.input.Controller controller) Returns a peeking iterator that allows the client to loop through all controller events that have not yet been handled.void
init()
Allows the controller wrapper implementation to initialize itself.
-
Field Details
-
_event
protected final net.java.games.input.Event _event -
_eventsIt
-
_controllers
-
_inited
protected static boolean _inited
-
-
Constructor Details
-
JInputControllerWrapper
public JInputControllerWrapper()
-
-
Method Details
-
getEvents
Description copied from interface:ControllerWrapper
Returns a peeking iterator that allows the client to loop through all controller events that have not yet been handled.- Specified by:
getEvents
in interfaceControllerWrapper
- Returns:
- an iterator that allows the client to check which events have still not been handled
-
getControllerCount
public int getControllerCount()- Specified by:
getControllerCount
in interfaceControllerWrapper
-
getControllerInfo
- Specified by:
getControllerInfo
in interfaceControllerWrapper
-
init
public void init()Description copied from interface:ControllerWrapper
Allows the controller wrapper implementation to initialize itself.- Specified by:
init
in interfaceControllerWrapper
-
getControllerInfo
-
createControllerEvent
protected ControllerEvent createControllerEvent(net.java.games.input.Controller controller, net.java.games.input.Event event)
-