Represents a mouse event.
More...
#include <Event.hpp>
|
| union { |
| Mouse::Button code |
| | The button that triggered the event. More...
|
| |
| struct { |
| double xOffset |
| |
| double yOffset |
| |
| } scrollOffset |
| | The distance in x and y that the scroll wheel has traveled. More...
|
| |
| }; | |
| |
| struct { |
| int32_t x |
| |
| int32_t y |
| |
| } | coord |
| | The mouse coordinate if the event was triggered by movement. More...
|
| |
| bool | ctrl |
| | True if ctrl was pressed, False otherwise. More...
|
| |
| bool | shift |
| | True if shift was pressed, False otherwise. More...
|
| |
| bool | left |
| | True if left mouse button was pressed, False otherwise. More...
|
| |
| bool | right |
| | True if right mouse button was pressed, False otherwise. More...
|
| |
| bool | middle |
| | True if middle mouse button was pressed, False otherwise. More...
|
| |
| bool | x1 |
| | True if extra 1 mouse button was pressed, False otherwise. More...
|
| |
| bool | x2 |
| | True if extra 2 mouse button was pressed, False otherwise. More...
|
| |
Represents a mouse event.
Definition at line 28 of file Event.hpp.
◆ code
The button that triggered the event.
Definition at line 31 of file Event.hpp.
◆ xOffset
| double lug::Window::MouseEvent::xOffset |
◆ yOffset
| double lug::Window::MouseEvent::yOffset |
◆ scrollOffset
| struct { ... } lug::Window::MouseEvent::scrollOffset |
The distance in x and y that the scroll wheel has traveled.
◆ @26
| int32_t lug::Window::MouseEvent::x |
| int32_t lug::Window::MouseEvent::y |
◆ coord
| struct { ... } lug::Window::MouseEvent::coord |
The mouse coordinate if the event was triggered by movement.
◆ ctrl
| bool lug::Window::MouseEvent::ctrl |
True if ctrl was pressed, False otherwise.
Definition at line 44 of file Event.hpp.
◆ shift
| bool lug::Window::MouseEvent::shift |
True if shift was pressed, False otherwise.
Definition at line 45 of file Event.hpp.
◆ left
| bool lug::Window::MouseEvent::left |
True if left mouse button was pressed, False otherwise.
Definition at line 46 of file Event.hpp.
◆ right
| bool lug::Window::MouseEvent::right |
True if right mouse button was pressed, False otherwise.
Definition at line 47 of file Event.hpp.
◆ middle
| bool lug::Window::MouseEvent::middle |
True if middle mouse button was pressed, False otherwise.
Definition at line 48 of file Event.hpp.
◆ x1
| bool lug::Window::MouseEvent::x1 |
True if extra 1 mouse button was pressed, False otherwise.
Definition at line 49 of file Event.hpp.
◆ x2
| bool lug::Window::MouseEvent::x2 |
True if extra 2 mouse button was pressed, False otherwise.
Definition at line 50 of file Event.hpp.
The documentation for this struct was generated from the following file: