cage.input
Class KeyboardHandler

java.lang.Object
  extended by cage.input.KeyboardHandler
All Implemented Interfaces:
org.minueto.handlers.MinuetoKeyboardHandler

public class KeyboardHandler
extends java.lang.Object
implements org.minueto.handlers.MinuetoKeyboardHandler

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.

Author:
Seth Marinello

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

KeyboardHandler

public KeyboardHandler()
Method Detail

handleKeyPress

public 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.

Specified by:
handleKeyPress in interface org.minueto.handlers.MinuetoKeyboardHandler
Parameters:
iValue - The value of the key pressed.
See Also:
MinuetoKeyboard

handleKeyRelease

public void handleKeyRelease(int iValue)
Does nothing.

Specified by:
handleKeyRelease in interface org.minueto.handlers.MinuetoKeyboardHandler
Parameters:
iValue - Value of key released
See Also:
MinuetoKeyboard

handleKeyType

public void handleKeyType(int iValue,
                          char cKeyChar)
Does nothing.

Specified by:
handleKeyType in interface org.minueto.handlers.MinuetoKeyboardHandler
Parameters:
iValue - Value of key pressed
cKeyChar - Character of key pressed
See Also:
MinuetoKeyboard