org.jagatoo.input.impl.mixed
Class AWTJInputInputDeviceFactory

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

public class AWTJInputInputDeviceFactory
extends InputDeviceFactory

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


Constructor Summary
AWTJInputInputDeviceFactory(InputSourceWindow sourceWindow, EventQueue eventQueue)
           
 
Method Summary
protected  void destroyImpl(InputSystem inputSystem)
          
protected  void flushCache(boolean keyboards, boolean mouses, boolean controllers)
          
protected  JInputController[] initControllers()
          
protected  AWTKeyboard[] initKeyboards()
          
protected  AWTMouse[] 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

AWTJInputInputDeviceFactory

public AWTJInputInputDeviceFactory(InputSourceWindow sourceWindow,
                                   EventQueue eventQueue)
Method Detail

flushCache

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

Overrides:
flushCache in class InputDeviceFactory

initMouses

protected AWTMouse[] initMouses()
                         throws InputSystemException

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

initKeyboards

protected AWTKeyboard[] 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