|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.input.devices.InputDeviceFactory
public abstract class InputDeviceFactory
A DeviceFactory is a simple factory to access all input devices available on the system.
| Constructor Summary | |
|---|---|
InputDeviceFactory(InputDeviceFactory masterFactory,
boolean useStaticArrays,
InputSourceWindow sourceWindow,
EventQueue eventQueue)
|
|
| Method Summary | |
|---|---|
void |
destroy(InputSystem inputSystem)
This method is called by the InputSystem when it gets destroyed. |
protected abstract void |
destroyImpl(InputSystem inputSystem)
|
protected InputDeviceFactory |
findSourceFactory()
|
protected void |
flushCache(boolean keyboards,
boolean mouses,
boolean controllers)
|
protected static void |
flushCache(InputDeviceFactory factory,
boolean keyboards,
boolean mouses,
boolean controllers)
|
protected Controller[] |
getCachedControllers()
|
protected Keyboard[] |
getCachedKeyboards()
|
protected Mouse[] |
getCachedMouses()
|
Controller[] |
getControllers()
|
Controller[] |
getControllers(boolean forceRefresh)
|
protected EventQueue |
getEveneQueue()
|
Keyboard[] |
getKeyboards()
|
Keyboard[] |
getKeyboards(boolean forceRefresh)
|
protected InputDeviceFactory |
getMasterFactory()
|
Mouse[] |
getMouses()
|
Mouse[] |
getMouses(boolean forceRefresh)
|
InputSourceWindow |
getSourceWindow()
|
protected abstract Controller[] |
initControllers()
|
protected static Controller[] |
initControllers(InputDeviceFactory factory)
|
protected abstract Keyboard[] |
initKeyboards()
|
protected static Keyboard[] |
initKeyboards(InputDeviceFactory factory)
|
protected abstract Mouse[] |
initMouses()
|
protected static Mouse[] |
initMouses(InputDeviceFactory factory)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputDeviceFactory(InputDeviceFactory masterFactory,
boolean useStaticArrays,
InputSourceWindow sourceWindow,
EventQueue eventQueue)
| Method Detail |
|---|
public final InputSourceWindow getSourceWindow()
protected final InputDeviceFactory getMasterFactory()
InputDeviceFactory, if this is a sub-factory (part of a mixed one).protected final InputDeviceFactory findSourceFactory()
protected EventQueue getEveneQueue()
protected final Keyboard[] getCachedKeyboards()
protected final Mouse[] getCachedMouses()
protected final Controller[] getCachedControllers()
protected void flushCache(boolean keyboards,
boolean mouses,
boolean controllers)
protected static final void flushCache(InputDeviceFactory factory,
boolean keyboards,
boolean mouses,
boolean controllers)
protected abstract Keyboard[] initKeyboards()
throws InputSystemException
InputSystemException
protected static final Keyboard[] initKeyboards(InputDeviceFactory factory)
throws InputSystemException
factory - the factory to call initKeyboards() on
InputSystemException
public Keyboard[] getKeyboards(boolean forceRefresh)
throws InputSystemException
getKeyboards in interface KeyboardFactoryforceRefresh - if true, the list of available devices is refreshed from the system.
InputSystemException
public final Keyboard[] getKeyboards()
throws InputSystemException
getKeyboards in interface KeyboardFactoryInputSystemException
protected abstract Mouse[] initMouses()
throws InputSystemException
InputSystemException
protected static final Mouse[] initMouses(InputDeviceFactory factory)
throws InputSystemException
factory - the factory to call initMouses() on
InputSystemException
public Mouse[] getMouses(boolean forceRefresh)
throws InputSystemException
getMouses in interface MouseFactoryforceRefresh - if true, the list of available devices is refreshed from the system.
InputSystemException
public final Mouse[] getMouses()
throws InputSystemException
getMouses in interface MouseFactoryInputSystemException
protected abstract Controller[] initControllers()
throws InputSystemException
InputSystemException
protected static final Controller[] initControllers(InputDeviceFactory factory)
throws InputSystemException
factory - the factory to call initControllers() on
InputSystemException
public Controller[] getControllers(boolean forceRefresh)
throws InputSystemException
getControllers in interface ControllerFactoryforceRefresh - if true, the list of available devices is refreshed from the system.
InputSystemException
public final Controller[] getControllers()
throws InputSystemException
getControllers in interface ControllerFactoryInputSystemException
protected abstract void destroyImpl(InputSystem inputSystem)
throws InputSystemException
InputSystemException
public final void destroy(InputSystem inputSystem)
throws InputSystemException
destroy in interface ControllerFactorydestroy in interface KeyboardFactorydestroy in interface MouseFactoryinputSystem -
InputSystemException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||