org.malai.interaction
Class MousePressEvent

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

 class MousePressEvent
extends Event

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


Field Summary
protected  int button
          The button used to perform the pressure.
protected  java.lang.Object source
          The object targeted during the pressure.
protected  int x
          The x coordinate of the pressure.
protected  int y
          The y coordinate of the pressure.
 
Fields inherited from class org.malai.interaction.Event
idHID
 
Constructor Summary
MousePressEvent(int idHID, int x, int y, int button, 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

x

protected int x
The x coordinate of the pressure.


y

protected int y
The y coordinate of the pressure.


source

protected java.lang.Object source
The object targeted during the pressure.


button

protected int button
The button used to perform the pressure.

Constructor Detail

MousePressEvent

public MousePressEvent(int idHID,
                       int x,
                       int y,
                       int button,
                       java.lang.Object source)
Creates the event.

Parameters:
idHID - The identifier of the HID.
x - The x coordinate of the pressure.
y - The y coordinate of the pressure.
button - The button used to perform the pressure.
source - The object targeted during the pressure.
Since:
0.2