Mouse (gb.sdl2)
This static class returns information about a mouse event.
This class is static.
Static properties
Button
|
Return the state of the mouse buttons.
|
Left
|
Return if the left button has been pressed or released (during a MouseUp event).
|
Middle
|
Return if the middle button has been pressed or released (during a MouseUp event).
|
RelX
|
Return how much the mouse cursor has moved horizontally since the last mouse event.
|
RelY
|
Return how much the mouse cursor has moved vertically since the last mouse event.
|
Relative
|
Return or set if the mouse runs in "relative" mode.
|
Right
|
Return if the right button has been pressed or released (during a MouseUp event).
|
StartX
|
Return the mouse cursor left position at the beginning of the last mousedown ? event.
|
StartY
|
Return the mouse cursor top position at the beginning of the last MouseDown event.
|
Visible
|
Return or set if the mouse cursor is visible.
|
WheelX
|
Return the mouse wheel horizontal move during a MouseWheel event.
|
WheelY
|
Return the mouse wheel vertical move during a MouseWheel event.
|
X
|
Return the mouse cursor left position.
|
Y
|
Return the mouse cursor top position.
|
Static methods
Hide
|
Hide the mouse cursor.
|
Show
|
Show the mouse cursor.
|