ButtonDetails

Mouse button state details for MouseEvent

Members

Functions

down
void down(short x, short y, ushort flags)

update for button down

reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
up
void up(short x, short y, ushort flags)

update for button up

Properties

doubleClick
bool doubleClick [@property getter]

Returns true if button is made down shortly after up

downDuration
int downDuration [@property getter]

returns button down state duration in hnsecs (1/10000 of second).

downFlags
ushort downFlags [@property getter]

bit set of mouse flags saved on button down

downX
short downX [@property getter]

X coordinate of point where button was pressed Down last time

downY
short downY [@property getter]

Y coordinate of point where button was pressed Down last time

isDown
bool isDown [@property getter]

returns true if button is currently pressed

tripleClick
bool tripleClick [@property getter]

Returns true if button is made down twice shortly after up

Variables

_doubleClick
bool _doubleClick;

true if button is made down shortly after up - valid if button is down

_downFlags
ushort _downFlags;

mouse button flags when down event occured

_downTs
long _downTs;

Clock.currStdTime() for down event of this button (0 if button is up).

_downX
short _downX;

x coordinates of down event

_downY
short _downY;

y coordinates of down event

_prevDownTs
long _prevDownTs;

Clock.currStdTime() for down event of this button (0 if button is up) set after double click to time when first click occured.

_tripleClick
bool _tripleClick;

true if button is made down twice shortly after up - valid if button is down

_upTs
long _upTs;

Clock.currStdTime() for up event of this button (0 if button is still down).

Meta