Class: IWMouseEvent

IWMouseEvent

This class contains important informations about the current mouse state.

new IWMouseEvent()

Creates a new mouse event.

Members


button :number

Indicates which mouse button has been pressed. This attribute contains one of the following constants:

  • IWButton.NONE - None button pressed (default)
  • IWButton.LEFT - Left button pressed
  • IWButton.MIDDLE - Middle button pressed
  • IWButton.RIGHT - Right button pressed

Type:
  • number

lastPosition :IWPoint

Stores the previous mouse position.
Type:

offset :IWPoint

Stores the offset between the current and previous mouse position.
Type:

position :IWPoint

Stores the current mouse position.
Type:

scrollbarOffset :IWPoint

Stores the scrollbar offset.
Type:

Methods


toString()

Returns a string representation of this mouse event.
Returns:
Type
String