|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.input.devices.InputDevice
org.jagatoo.input.devices.Controller
org.jagatoo.input.impl.lwjgl.LWJGLController
public class LWJGLController
LWJGL implementation of a Controller.
| Constructor Summary | |
|---|---|
protected |
LWJGLController(ControllerFactory factory,
InputSourceWindow sourceWindow,
EventQueue eventQueue,
org.lwjgl.input.Controller implController)
|
| Method Summary | |
|---|---|
void |
collectEvents(InputSystem is,
EventQueue eventQueue,
long nanoTime)
Processes pending events from the system and places them into the EventQueue. |
protected void |
collectOrFireEvents(InputSystem is,
EventQueue eventQueue,
long nanoTime)
|
void |
consumePendingEvents(InputSystem is,
EventQueue eventQueue,
long nanoTime)
Processes pending events from the system and simply wastes them. |
protected LWJGLControllerAxis[] |
createAxesArray(java.lang.Object implObj)
|
protected ControllerButton[] |
createButtonsArray(java.lang.Object implObj)
|
void |
destroyImpl()
Destroys the Controller. |
protected org.lwjgl.input.Controller |
getController()
|
protected int |
getIndex()
|
void |
onDeviceRegistered(InputSystem inputSystem)
This method is called by the InputSystem after the device has been completely and successfully registered. |
void |
onDeviceUnregistered(InputSystem inputSystem)
This method is called by the InputSystem after the device has been completely and successfully deregistered. |
void |
update(InputSystem is,
EventQueue eventQueue,
long nanoTime)
Processes pending events from the system and directly fires them (notifes the listeners). |
| Methods inherited from class org.jagatoo.input.devices.InputDevice |
|---|
addInputStateListener, equals, fireStateEventsAndDoActions, getEventQueue, getName, getSourceWindow, hasInputStateListener, isEnabled, removeInputStateListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected LWJGLController(ControllerFactory factory,
InputSourceWindow sourceWindow,
EventQueue eventQueue,
org.lwjgl.input.Controller implController)
throws InputSystemException
InputSystemException| Method Detail |
|---|
public void onDeviceRegistered(InputSystem inputSystem)
throws InputSystemException
onDeviceRegistered in class InputDeviceInputSystemException
public void onDeviceUnregistered(InputSystem inputSystem)
throws InputSystemException
onDeviceUnregistered in class InputDeviceInputSystemExceptionprotected final org.lwjgl.input.Controller getController()
protected final int getIndex()
protected final void collectOrFireEvents(InputSystem is,
EventQueue eventQueue,
long nanoTime)
throws InputSystemException
InputSystemException
public void consumePendingEvents(InputSystem is,
EventQueue eventQueue,
long nanoTime)
throws InputSystemException
InputDevice.update(InputSystem, EventQueue, long) method,
if the device is disabled or its InputSourceWindow doesn't currently
receive input events.
consumePendingEvents in class InputDeviceInputSystemException
public void collectEvents(InputSystem is,
EventQueue eventQueue,
long nanoTime)
throws InputSystemException
InputDevice.update(InputSystem, EventQueue, long)
method is invoked.
collectEvents in class InputDeviceInputSystemException
public void update(InputSystem is,
EventQueue eventQueue,
long nanoTime)
throws InputSystemException
InputDevice.collectEvents(InputSystem, EventQueue, long)
method placed events into it.
update in class InputDeviceInputSystemException
public void destroyImpl()
throws InputSystemException
destroyImpl in class ControllerInputSystemExceptionprotected final LWJGLControllerAxis[] createAxesArray(java.lang.Object implObj)
createAxesArray in class Controllerprotected final ControllerButton[] createButtonsArray(java.lang.Object implObj)
createButtonsArray in class Controller
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||