com.threerings.util
Interface KeyboardManager.KeyObserver
- Enclosing class:
- KeyboardManager
public static interface KeyboardManager.KeyObserver
An interface to be implemented by those that care to be notified whenever an event (either a
key press or a key release) occurs for any key while the keyboard manager is active. We use
this custom interface rather than the more standard KeyListener
interface so that we needn't create key pressed and released event objects each time a
(potentially artificially-generated) event occurs.
|
Method Summary |
void |
handleKeyEvent(int id,
int keyCode,
long timestamp)
Called whenever a key event occurs for a particular key. |
handleKeyEvent
void handleKeyEvent(int id,
int keyCode,
long timestamp)
- Called whenever a key event occurs for a particular key.