|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A sensor associated with a keyboard input device, which provides key status and typed characters that should be interpreted relative to none or more sensor target spaces. The target space can be 2D or 3D.
| Method Summary | |
void |
addKeyboardTarget(SpaceNode target)
Adds a target space to be monitored by this sensor. |
BooleanField.EventOut |
getKeyboardActiveOut()
Sends an event when the sensor starts or stops being active on a given sensor target. |
CharField.EventOut |
getKeyboardCharOut()
Sends an event each time a valid character is typed (or repeats) while this sensor is active. |
BooleanField.EventIn |
getKeyboardEnableIn()
Enables/disables this sensor. |
SpaceNodeField.EventIn |
getKeyboardFocusIn()
Tries to gain keyboard focus for a sensor target, but only if the target's window is active. |
StateSetField.EventOut |
getKeyboardKeysOut()
Sends an event each time the key state (KeyboardSensors.KEY_???) changes (key pressed, released, or press repeated) while this sensor is active. |
SpaceNodeField.EventOut |
getKeyboardSpaceOut()
Sends an event when the sensor starts being active in a new sensor target space. |
void |
removeKeyboardTarget(SpaceNode target)
Removes a target space being monitored by this sensor. |
| Methods inherited from interface gumbo.util.Disposable |
dispose, isDisposed |
| Method Detail |
public void addKeyboardTarget(SpaceNode target)
target - Reference to the target. Never null.
Duplicates are ignored.public void removeKeyboardTarget(SpaceNode target)
target - Reference to the target. Never null.
Missing are ignored.public BooleanField.EventIn getKeyboardEnableIn()
public SpaceNodeField.EventIn getKeyboardFocusIn()
public SpaceNodeField.EventOut getKeyboardSpaceOut()
public BooleanField.EventOut getKeyboardActiveOut()
public StateSetField.EventOut getKeyboardKeysOut()
public CharField.EventOut getKeyboardCharOut()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||