Struct ButtonDetails
Mouse button state details for MouseEvent
Fields
| Name | Type | Description |
_doubleClick
|
bool | true if button is made down shortly after up - valid if button is down
|
_downFlags
|
ushort | mouse button flags when down event occured
|
_downTs
|
long | Clock.currStdTime() for down event of this button (0 if button is up).
|
_downX
|
short | x coordinates of down event
|
_downY
|
short | y coordinates of down event
|
_prevDownTs
|
long | 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 | true if button is made down twice shortly after up - valid if button is down
|
_upTs
|
long | Clock.currStdTime() for up event of this button (0 if button is still down).
|
Properties
| Name | Type | Description |
doubleClick[get]
|
bool | Returns true if button is made down shortly after up
|
downDuration[get]
|
int | returns button down state duration in hnsecs (1/10000 of second).
|
downFlags[get]
|
ushort | bit set of mouse flags saved on button down
|
downX[get]
|
short | X coordinate of point where button was pressed Down last time
|
downY[get]
|
short | Y coordinate of point where button was pressed Down last time
|
isDown[get]
|
bool | returns true if button is currently pressed
|
tripleClick[get]
|
bool | Returns true if button is made down twice shortly after up
|
Methods
| Name | Description |
down
(x, y, flags)
|
update for button down
|
reset
()
|
|
up
(x, y, flags)
|
update for button up
|