keyboard derived from ygNode Example Source Header

Description: creates events from keyboard input

notes:
Category: Trigger
Author: Dave Pape
11/01/01
09/01/05 Alex Hill - added majority of keyboard keys and added "key" event
Revision: 07/01/06 Alex Hill - added function keys

    Events
keyboardKeys[i].labelkey the key concatenated with the word "key" (i.e. akey, 1key)
key name the key name has been pressed
    Comments

constructor keyboard

destructor ~keyboard

method reset

1 set the previous state of all keys to 0

method app

1 for each possible key
1.1 if the state has changed then generate a key event
1.1.1 the key concatenated with the word "key" (i.e. akey, 1key)
1.1.2 the key name has been pressed