java.lang.Objecttelosys.objects.Keyboard
Class for the keyboard instance.
Constructor Summary | |
Keyboard()
|
Method Summary | |
string |
desc()
Returns a description of the keyboard object |
number |
getNbKeyActions()
Returns the number of key actions |
void |
keyDown(object oEvent)
Executes when a key is down |
void |
keyPress(object oEvent)
Executes when a key is pressed |
void |
processKeyCode(number iKeyCode,
number iEvtType,
object oEvent)
Executes the action associated with the given key code if exists |
void |
setKeyAction(number iKey,
object oFunction,
number iEventType)
Sets the key action |
void |
showKeyActions()
Shows (alert) all key actions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Keyboard()
Method Detail |
public string desc()
public void setKeyAction(number iKey, object oFunction, number iEventType)
iKey
- the number of the key actionoFunction
- the functioniEventType
- the event type numberpublic number getNbKeyActions()
public void showKeyActions()
public void keyPress(object oEvent)
oEvent
- the event objectpublic void keyDown(object oEvent)
oEvent
- the event objectpublic void processKeyCode(number iKeyCode, number iEvtType, object oEvent)
iKeyCode
- the key codeiEvtType
- the number of event typeoEvent
- the event object