#include <Mouse.h>
Definition at line 9 of file Mouse.h.
◆ anonymous enum
Enumerator |
---|
Left | |
Right | |
Middle | |
Definition at line 13 of file Mouse.h.
◆ getPosition()
Vec2i tl::Mouse::getPosition |
( |
| ) |
|
|
static |
Get current position of the mouse cursor.
- Returns
- X-position, Y-position.
Definition at line 19 of file Mouse.cpp.
◆ intersects()
Check if the mouse cursor is inside a drawable object.
- Parameters
-
- Returns
- True if the mouse cursor is pointed at the parameter.
Definition at line 34 of file Mouse.cpp.
◆ isHeld()
bit tl::Mouse::isHeld |
( |
u8 | button | ) |
|
|
static |
Check if a mouse button is currently down.
- Parameters
-
button | Which mouse button to check. |
- Returns
- True if that mouse button is down.
tl::Mouse has an enum for different mouse buttons.
Definition at line 11 of file Mouse.cpp.
The documentation for this class was generated from the following files: