Skip to content
Almar Klein edited this page Jun 1, 2017 · 3 revisions

Inherits from BaseEvent.

A MouseEvent is an event for things that happen with the mouse.

The MouseEvent class implements the following properties:
absx, absy, button, x, x2d, y, y2d

The MouseEvent class implements the following methods:
Set

Properties

The absolute x position in screen coordinates when the event happened.

The absolute y position in screen coordinates when the event happened.

The The mouse button that was pressed, 0=none, 1=left, 2=right.

The x position in screen coordinates relative to the owning object when the event happened. (For Wobjects, relative to the Axes.)

The x position in 2D world coordinates when the event happened. This is only valid when the used camera is 2D.

The y position in screen coordinates relative to the owning object when the event happened. (For Wobjects, relative to the Axes.)

The y position in 2D world coordinates when the event happened. This is only valid when the used camera is 2D.

Methods

Set the event properties before firing it.

Clone this wiki locally