|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WidgetKeyboardListener
A WidgetKeyboardListener is notified of Widget-Keyboard interaction events.
| Method Summary | |
|---|---|
void |
onInputStateChanged(Widget widget,
org.jagatoo.input.devices.components.DeviceComponent comp,
int delta,
int state,
long when,
boolean isTopMost,
boolean hasFocus)
This event is fired when the state of any DeviceComponent has changed. |
void |
onKeyPressed(Widget widget,
org.jagatoo.input.devices.components.Key key,
int modifierMask,
long when)
This event is fired, when a key is pressed on a focused Widget. |
void |
onKeyReleased(Widget widget,
org.jagatoo.input.devices.components.Key key,
int modifierMask,
long when)
This event is fired, when a key is released on a focused Widget. |
void |
onKeyTyped(Widget widget,
char ch,
int modifierMask,
long when)
This event is fired when a key is typed on the keyboard. |
| Method Detail |
|---|
void onKeyPressed(Widget widget,
org.jagatoo.input.devices.components.Key key,
int modifierMask,
long when)
widget - the Widget for which this event was firedkey - the key that was pressedmodifierMask - the mask of modifier keyswhen - the gameTime of the key event
void onKeyReleased(Widget widget,
org.jagatoo.input.devices.components.Key key,
int modifierMask,
long when)
widget - the Widget for which this event was firedkey - the key that was releasedmodifierMask - the mask of modifier keyswhen - the gameTime of the key event
void onKeyTyped(Widget widget,
char ch,
int modifierMask,
long when)
widget - the Widget for which this event was firedch - the typed key's charactermodifierMask - the mask of modifier keyswhen - the gameTime of the key event
void onInputStateChanged(Widget widget,
org.jagatoo.input.devices.components.DeviceComponent comp,
int delta,
int state,
long when,
boolean isTopMost,
boolean hasFocus)
widget - the Widget for which this event was firedcomp - delta - state - when - the gameTime of the eventisTopMost - hasFocus -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||