org.jagatoo.input.impl.mixed
Class LWJGLJInputInputDeviceFactory

java.lang.Object
  extended by org.jagatoo.input.devices.InputDeviceFactory
      extended by org.jagatoo.input.impl.mixed.LWJGLJInputInputDeviceFactory
All Implemented Interfaces:
ControllerFactory, KeyboardFactory, MouseFactory

public class LWJGLJInputInputDeviceFactory
extends InputDeviceFactory

This InputDeviceFactory is backed by an LWJGLInputDeviceFactory for Keyboards and Mouses and a JInputInputDeviceFactory for Controllers.


Constructor Summary
LWJGLJInputInputDeviceFactory(InputSourceWindow sourceWindow, EventQueue eventQueue)
           
 
Method Summary
protected  void destroyImpl(InputSystem inputSystem)
          
protected  void flushCache(boolean keyboards, boolean mouses, boolean controllers)
          
protected  JInputController[] initControllers()
          
protected  LWJGLKeyboard[] initKeyboards()
          
protected  LWJGLMouse[] initMouses()
          
 
Methods inherited from class org.jagatoo.input.devices.InputDeviceFactory
destroy, findSourceFactory, flushCache, getCachedControllers, getCachedKeyboards, getCachedMouses, getControllers, getControllers, getEveneQueue, getKeyboards, getKeyboards, getMasterFactory, getMouses, getMouses, getSourceWindow, initControllers, initKeyboards, initMouses
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LWJGLJInputInputDeviceFactory

public LWJGLJInputInputDeviceFactory(InputSourceWindow sourceWindow,
                                     EventQueue eventQueue)
Method Detail

flushCache

protected final void flushCache(boolean keyboards,
                                boolean mouses,
                                boolean controllers)

Overrides:
flushCache in class InputDeviceFactory

initMouses

protected LWJGLMouse[] initMouses()
                           throws InputSystemException

Specified by:
initMouses in class InputDeviceFactory
Returns:
an array of all the installed Mouses in the system.
Throws:
InputSystemException

initKeyboards

protected LWJGLKeyboard[] initKeyboards()
                                 throws InputSystemException

Specified by:
initKeyboards in class InputDeviceFactory
Returns:
an array of all the installed Keyboards in the system.
Throws:
InputSystemException

initControllers

protected JInputController[] initControllers()
                                      throws InputSystemException

Specified by:
initControllers in class InputDeviceFactory
Returns:
an array of all the installed Controllers in the system.
Throws:
InputSystemException

destroyImpl

protected void destroyImpl(InputSystem inputSystem)
                    throws InputSystemException

Specified by:
destroyImpl in class InputDeviceFactory
Throws:
InputSystemException