Class InputEventMouse

Mouse button and/or motion event.

class InputEventMouse
  : InputEvent ;

Constructors

NameDescription
this (position, lastMousePosition, mouseButtons, lastMouseButtons, wheel)

Fields

NameTypeDescription
buttons intOne of or a bitwise combination of MouseButtons that are down.
buttonsChanged const(bool)
delta const(gfm.math.vector.Vector!(double,2))
lastButtons intOne of or a bitwise combination of MouseButtons that were just down.
position const(gfm.math.vector.Vector!(double,2))
wheel const(int)
device const(InputDevice)

Properties

NameTypeDescription
wasButtonJustClicked[set] boolWhether the given button was just clicked, i.e. it's last state was pressed and is now unpressed.
wasButtonJustPressed[set] boolWhether the given button was just pressed, i.e. it's last state was unpressed and is now pressed.
handled[get] boolWhether this InputEvent has been handled.

Methods

NameDescription
stopPropagation () Mark this InputEvent as handled, stopping propagation through the input tree.