|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcage.input.KeyboardHandler
public class KeyboardHandler
Input from the keyboard is handled by an instance of the KeyboardHandler. The integer values passed in here should be one of the values in Minueto Keyboard. The KeyboardHandler looks through all Bindings in the program for key/action bindings assocated with the given key press.
Constructor Summary | |
---|---|
KeyboardHandler()
|
Method Summary | |
---|---|
void |
handleKeyPress(int iValue)
Searches first the current Scene bindings(Defined in a Scene) and then Global bindings (Defined in the produciton file, and if a binding has been made for the pressed key, the assoicated action is called. |
void |
handleKeyRelease(int iValue)
Does nothing. |
void |
handleKeyType(int iValue,
char cKeyChar)
Does nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyboardHandler()
Method Detail |
---|
public void handleKeyPress(int iValue)
handleKeyPress
in interface org.minueto.handlers.MinuetoKeyboardHandler
iValue
- The value of the key pressed.MinuetoKeyboard
public void handleKeyRelease(int iValue)
handleKeyRelease
in interface org.minueto.handlers.MinuetoKeyboardHandler
iValue
- Value of key releasedMinuetoKeyboard
public void handleKeyType(int iValue, char cKeyChar)
handleKeyType
in interface org.minueto.handlers.MinuetoKeyboardHandler
iValue
- Value of key pressedcKeyChar
- Character of key pressedMinuetoKeyboard
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |