keyboard derived from ygNode

Description: creates events from keyboard input

notes:
Category: Trigger
Author: Dave Pape
Revision: 11/01/01

    Events
keyboardKeys[i].labelkey the key concatenated with the word "key" (i.e. akey, 1key)
    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)