Struct ButtonDetails

Mouse button state details for MouseEvent

struct ButtonDetails;

Fields

NameTypeDescription
_doubleClick booltrue if button is made down shortly after up - valid if button is down
_downFlags ushortmouse button flags when down event occured
_downTs longClock.currStdTime() for down event of this button (0 if button is up).
_downX shortx coordinates of down event
_downY shorty coordinates of down event
_prevDownTs longClock.currStdTime() for down event of this button (0 if button is up) set after double click to time when first click occured.
_tripleClick booltrue if button is made down twice shortly after up - valid if button is down
_upTs longClock.currStdTime() for up event of this button (0 if button is still down).

Properties

NameTypeDescription
doubleClick[get] boolReturns true if button is made down shortly after up
downDuration[get] intreturns button down state duration in hnsecs (1/10000 of second).
downFlags[get] ushortbit set of mouse flags saved on button down
downX[get] shortX coordinate of point where button was pressed Down last time
downY[get] shortY coordinate of point where button was pressed Down last time
isDown[get] boolreturns true if button is currently pressed
tripleClick[get] boolReturns true if button is made down twice shortly after up

Methods

NameDescription
down (x, y, flags) update for button down
reset ()
up (x, y, flags) update for button up