Struct ButtonDetails

Mouse button state details for MouseEvent

Fields

Name Type Description
DOUBLE_CLICK_THRESHOLD_MS long
_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
_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

Methods

Name Description
down update for button down
reset
up update for button up

Authors

Vadim Lopatin, coolreader.org@gmail.com

Copyright

Vadim Lopatin, 2014

License

Boost License 1.0