|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.nexttext.input.InputManager
public class InputManager
A manager for the input sources.
The input manager keeps input sources accessible by name. The application
adds input source objects to the manager and behaviours can fetch these
objects to access their data. All sources are stored in a
HashMap
.
Constructor Summary | |
---|---|
InputManager(Mouse mouse,
Keyboard keyboard)
Builds an InputManager. |
Method Summary | |
---|---|
void |
add(java.lang.String name,
InputSource source)
Adds an input source to the list. |
InputSource |
get(java.lang.String name)
Gets an input source from the list. |
void |
remove(java.lang.String name)
Removes an input source from the list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputManager(Mouse mouse, Keyboard keyboard)
mouse
- the default Mouse InputSourcekeyboard
- the default Keyboard InputSourceMethod Detail |
---|
public void add(java.lang.String name, InputSource source)
name
- key of the new input sourcesource
- the new input source objectpublic void remove(java.lang.String name)
name
- key of the input source to removepublic InputSource get(java.lang.String name)
name
- key of the input source to return
InputSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |