MouseEvent

Members

Enums

Button
enum Button
Type
enum Type

Functions

appendButton
void appendButton(uint b)

append button to mask

getPosPress
ivec2 getPosPress(Button b)
getRelPress
ivec2 getRelPress(Button b)
isPressed
bool isPressed(Button b)

is button pressed

removeButton
void removeButton(uint b)

remove button to mask

Static functions

buttonIndex
size_t buttonIndex(Button b)

index in posPress and relPress

Variables

btn
Button btn;

mouse button

mask
uint mask;

mask for motion, button for pressed/released, 0 for wheel

pos
ivec2 pos;

current pos

posPress
ivec2[[EnumMembers!Button].length - 1] posPress;

pressed button motion pos

rel
ivec2 rel;

different between last and current pos

relPress
ivec2[[EnumMembers!Button].length - 1] relPress;

pressed button relative motion (different between last and current)

type
Type type;
whe
ivec2 whe;

wheel

Meta