Class InputEventMouse
Mouse button and/or motion event.
Constructors
Name | Description |
---|---|
this
(position, lastMousePosition, mouseButtons, lastMouseButtons, wheel)
|
Fields
Name | Type | Description |
---|---|---|
buttons
|
int | One of or a bitwise combination of MouseButton s that are down.
|
buttonsChanged
|
const(bool) | |
delta
|
const(gfm | |
lastButtons
|
int | One of or a bitwise combination of MouseButton s that were just down.
|
position
|
const(gfm | |
wheel
|
const(int) | |
device
|
const(InputDevice) |
Properties
Name | Type | Description |
---|---|---|
wasButtonJustClicked [set]
|
bool | Whether the given button was just clicked, i.e. it's last state was pressed and is now unpressed.
|
wasButtonJustPressed [set]
|
bool | Whether the given button was just pressed, i.e. it's last state was unpressed and is now pressed.
|
handled [get]
|
bool | Whether this InputEvent has been handled.
|
Methods
Name | Description |
---|---|
stopPropagation
()
|
Mark this InputEvent as handled, stopping propagation through the input tree.
|