Mouse

Provides an interface to the user's mouse.

Constructors

this
this()
Undocumented in source.

Members

Functions

isPressed
bool isPressed(MouseButton button)
markAsPressed
void markAsPressed(MouseButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
markAsReleased
void markAsReleased(MouseButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
positionX
float positionX()

Return X position inside the window.

positionY
float positionY()

Return Y position inside the window.

Variables

_x
float _x;
_y
float _y;
Undocumented in source.
pressed
bool[MouseButton.max + 1] pressed;
Undocumented in source.

Meta