Dragonfly 4.20
A text-based game engine
|
Public Member Functions | |
void | setMouseAction (EventMouseAction new_mouse_action) |
EventMouseAction | getMouseAction () const |
void | setMouseButton (Mouse::Button new_mouse_button) |
Mouse::Button | getMouseButton () const |
void | setMousePosition (Vector new_mouse_xy) |
Vector | getMousePosition () const |
Public Member Functions inherited from df::Event | |
Event () | |
virtual | ~Event () |
void | setType (std::string new_type) |
std::string | getType () const |
Private Attributes | |
EventMouseAction | m_mouse_action |
Mouse::Button | m_mouse_button |
Vector | m_mouse_xy |
EventMouseAction df::EventMouse::getMouseAction | ( | ) | const |
Get mouse event's action.
Mouse::Button df::EventMouse::getMouseButton | ( | ) | const |
Get mouse event's button.
Vector df::EventMouse::getMousePosition | ( | ) | const |
Get mouse event's position.
void df::EventMouse::setMouseAction | ( | EventMouseAction | new_mouse_action | ) |
Set mouse event's action.
void df::EventMouse::setMouseButton | ( | Mouse::Button | new_mouse_button | ) |
Set mouse event's button.
void df::EventMouse::setMousePosition | ( | Vector | new_mouse_xy | ) |
Set mouse event's position.
|
private |
Mouse action.
|
private |
Mouse button.