org.malai.interaction
Class KeyPressEvent

java.lang.Object
  extended by org.malai.interaction.Event
      extended by org.malai.interaction.KeyPressEvent

 class KeyPressEvent
extends Event

This class defines an event corresponding to the pressure of a key.


Field Summary
protected  int keyCode
          The code of the key pressed.
protected  java.lang.Object source
          The object that produced the key event.
 
Fields inherited from class org.malai.interaction.Event
idHID
 
Constructor Summary
KeyPressEvent(int idHID, int keyCode, java.lang.Object source)
          Creates the event.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyCode

protected int keyCode
The code of the key pressed.


source

protected java.lang.Object source
The object that produced the key event.

Constructor Detail

KeyPressEvent

public KeyPressEvent(int idHID,
                     int keyCode,
                     java.lang.Object source)
Creates the event.

Parameters:
idHID - The identifier of the HID.
keyCode - The key code.
source - The object that produced the event.
Since:
0.2