Reads mouse.
More...
#include <MouseInput.hpp>
|
| virtual void | GetPosition (int &outX, int &outY) const |
| |
| virtual void | SetPosition (int x, int y) const |
| |
| virtual void | SetRelative (bool enable) const |
| |
| virtual void | ShowCursor (bool enable) const |
| |
| virtual bool | IsDown (ae3d::mouseinput::Enum button) const |
| |
◆ GetPosition()
| virtual void MouseInput::GetPosition |
( |
int & |
outX, |
|
|
int & |
outY |
|
) |
| const |
|
virtual |
- Parameters
-
| outX | If relative movement is false, cursor's X screen coordinate relative to upper-left corner is returned here. |
| outY | If relative movement is false, cursor's Y screen coordinate relative to upper-left corner is returned here. |
◆ IsDown()
| virtual bool MouseInput::IsDown |
( |
ae3d::mouseinput::Enum |
button | ) |
const |
|
virtual |
- Parameters
-
- Returns
- True, if button is down, false otherwise.
◆ SetPosition()
| virtual void MouseInput::SetPosition |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
|
virtual |
- Parameters
-
| x | X screen coordinate. |
| y | Y screen coordinate. |
◆ SetRelative()
| virtual void MouseInput::SetRelative |
( |
bool |
enable | ) |
const |
|
virtual |
- Parameters
-
| enable | Relative movement status. If true, GetPosition returns values relative to the prior state. Defaults to false. |
◆ ShowCursor()
| virtual void MouseInput::ShowCursor |
( |
bool |
enable | ) |
const |
|
virtual |
- Parameters
-
| enable | True, if cursor will be shown, false otherwise. |
The documentation for this class was generated from the following file: