|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.input.managers.InputHotPlugManager
public class InputHotPlugManager
The InputHotPlugManager polls for hot-plugged InputDevices
and notifies listeners when devices are plugged in or out.
| Constructor Summary | |
|---|---|
InputHotPlugManager()
|
|
| Method Summary | |
|---|---|
void |
addHotPlugListener(InputHotPlugListener l)
Adds a new InputHotPlugListener to the list of notifed listeners. |
void |
deregisterControllerFactory(ControllerFactory factory)
Deregisters a ControllerFactory. |
void |
deregisterDeviceFactory(InputDeviceFactory factory)
Deregisters a InputDeviceFactory. |
void |
deregisterKeyboardFactory(KeyboardFactory factory)
Deregisters a KeyboardFactory. |
void |
deregisterMouseFactory(MouseFactory factory)
Deregisters a MouseFactory. |
boolean |
isRunning()
|
protected void |
notifyListeners(InputDevice[] devices0,
InputDevice[] devices1)
|
void |
registerControllerFactory(ControllerFactory factory)
Registers a ControllerFactory to be polled for hot-plugged devices. |
void |
registerDeviceFactory(InputDeviceFactory factory)
Registers a InputDeviceFactory to be polled for hot-plugged devices. |
void |
registerKeyboardFactory(KeyboardFactory factory)
Registers a KeyboardFactory to be polled for hot-plugged devices. |
void |
registerMouseFactory(MouseFactory factory)
Registers a MouseFactory to be polled for hot-plugged devices. |
void |
removeHotPlugListener(InputHotPlugListener l)
Removes a InputHotPlugListener from the list of notifed listeners. |
void |
run()
|
void |
start()
Starts the InputHotPlugManager in a new Thread. |
void |
stop(boolean wait)
Stops the InputHotPlugManager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputHotPlugManager()
| Method Detail |
|---|
public void registerKeyboardFactory(KeyboardFactory factory)
throws InputSystemException
KeyboardFactory to be polled for hot-plugged devices.
factory -
InputSystemException
public void deregisterKeyboardFactory(KeyboardFactory factory)
throws InputSystemException
KeyboardFactory.
factory -
InputSystemException
public void registerMouseFactory(MouseFactory factory)
throws InputSystemException
MouseFactory to be polled for hot-plugged devices.
factory -
InputSystemException
public void deregisterMouseFactory(MouseFactory factory)
throws InputSystemException
MouseFactory.
factory -
InputSystemException
public void registerControllerFactory(ControllerFactory factory)
throws InputSystemException
ControllerFactory to be polled for hot-plugged devices.
factory -
InputSystemException
public void deregisterControllerFactory(ControllerFactory factory)
throws InputSystemException
ControllerFactory.
factory -
InputSystemException
public void registerDeviceFactory(InputDeviceFactory factory)
throws InputSystemException
InputDeviceFactory to be polled for hot-plugged devices.registerKeyboardFactory(KeyboardFactory),
registerMouseFactory(MouseFactory) and registerControllerFactory(ControllerFactory).
factory -
InputSystemException
public void deregisterDeviceFactory(InputDeviceFactory factory)
throws InputSystemException
InputDeviceFactory.deregisterKeyboardFactory(KeyboardFactory),
deregisterMouseFactory(MouseFactory) and deregisterControllerFactory(ControllerFactory).
factory -
InputSystemExceptionpublic void addHotPlugListener(InputHotPlugListener l)
InputHotPlugListener to the list of notifed listeners.
l - public void removeHotPlugListener(InputHotPlugListener l)
InputHotPlugListener from the list of notifed listeners.
l -
protected void notifyListeners(InputDevice[] devices0,
InputDevice[] devices1)
public void run()
run in interface java.lang.Runnablepublic final boolean isRunning()
public void start()
InputHotPlugManager in a new Thread.
public void stop(boolean wait)
InputHotPlugManager.
wait - if true, the method will not terminate
until the manager's Thread is stopped.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||