|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MinuetoKeyboardHandler
The MinuetoKeyboardHandler is an interface for receiving a keyboard
event (press, release) from a MinuetoWindow and handling it.
In other words, the class that will handle keyboard input from MinuetoWindow must extend
this interface. In turn, that class must be registered with
the MinuetoEventQueue.
An event is generated everytime the keyboard is pressed and released.
When the handle method on the MinuetoEventQueue is invoked, that
event is processed and the appropriate method in MinuetoKeyboardHandler
is invoked.
MinuetoKeyboard,
MinuetoEventQueue| Method Summary | |
|---|---|
void |
handleKeyPress(int value)
Invoked when a keyboard key is pressed. |
void |
handleKeyRelease(int value)
Invoked when a keyboard key is released. |
void |
handleKeyType(char keyChar)
Invoked when a keyboard key was typed. |
| Method Detail |
|---|
void handleKeyPress(int value)
The MinuetoKeyboard class stores the constants used to identify the
different keys on the keyboard.
value - int denoting which key was pressed.MinuetoKeyboardvoid handleKeyRelease(int value)
The MinuetoKeyboard class stores the constants used to identify the
different keys on the keyboard.
value - int denoting which key was released.MinuetoKeyboardvoid handleKeyType(char keyChar)
keyChar - char denoting the key in this event.MinuetoKeyboard
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||