keyboard derived from ygNode | Example | Source | Header |
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