|
ChaiLove API
2.0.0
|
Provides an interface to the user's mouse. More...
Public Member Functions | |
| float | getX () |
| Returns the current x-position of the mouse. More... | |
| float | getY () |
| Returns the current y-position of the mouse. More... | |
| Types::Graphics::Point | getPosition () |
| Returns the current position of the mouse. More... | |
| bool | isDown (int button) |
| Checks whether a certain button is down. More... | |
| bool | isDown (const std::string &button) |
| Checks whether a certain button is down. More... | |
Provides an interface to the user's mouse.
| Types::Graphics::Point love::mouse::getPosition | ( | ) |
Returns the current position of the mouse.
| float love::mouse::getX | ( | ) |
Returns the current x-position of the mouse.
| float love::mouse::getY | ( | ) |
Returns the current y-position of the mouse.
| bool love::mouse::isDown | ( | const std::string & | button | ) |
Checks whether a certain button is down.
| button | The mouse button to check. "left", "middle", "right", etc. |
| bool love::mouse::isDown | ( | int | button | ) |
Checks whether a certain button is down.
| button | The index of a button to check. 1 is the primary mouse button, 2 is the secondary mouse button and 3 is the middle button. Further buttons are mouse dependant. |