![]() |
Max OS 0.3
|
Handles events that are triggered by the mouse driver. More...
#include <mouse.h>
Public Member Functions | |
| common::Event< MouseEvents > * | on_event (common::Event< MouseEvents > *) override |
| Handles the triggered event and calls the appropriate function. | |
| virtual void | on_mouse_down_event (uint8_t button) |
| Called when the mouse is pressed. | |
| virtual void | on_mouse_up_event (uint8_t button) |
| Called when the mouse is released. | |
| virtual void | on_mouse_move_event (int8_t x, int8_t y) |
| Called when the mouse is moved. | |
Public Member Functions inherited from MaxOS::common::EventHandler< MouseEvents > | |
| virtual Event< MouseEvents > * | on_event (Event< MouseEvents > *event) |
| This function is called when an event is raised. | |
|
override |
Handles the triggered event and calls the appropriate function.
| event | The event that was triggered |
Definition at line 25 of file mouse.cpp.
References on_mouse_down_event(), on_mouse_move_event(), and on_mouse_up_event().
Called when the mouse is pressed.
| button | The button that was pressed |
Reimplemented in MaxOS::gui::Desktop.
Definition at line 51 of file mouse.cpp.
Referenced by on_event().
Called when the mouse is moved.
| x | How much the mouse moved in the x direction |
| y | How much the mouse moved in the y direction |
Reimplemented in MaxOS::gui::Desktop, MaxOS::gui::WidgetMoverResizer< Left, Top, Width, Height >, MaxOS::gui::WidgetMoverResizer< 0, 0, 0, 1 >, MaxOS::gui::WidgetMoverResizer< 0, 0, 1, 0 >, MaxOS::gui::WidgetMoverResizer< 0, 0, 1, 1 >, MaxOS::gui::WidgetMoverResizer< 0, 1, 0, -1 >, MaxOS::gui::WidgetMoverResizer< 0, 1, 1, -1 >, MaxOS::gui::WidgetMoverResizer< 1, 0, -1, 0 >, MaxOS::gui::WidgetMoverResizer< 1, 0, -1, 1 >, MaxOS::gui::WidgetMoverResizer< 1, 1, -1, -1 >, and MaxOS::gui::WidgetMoverResizer< 1, 1, 0, 0 >.
Definition at line 70 of file mouse.cpp.
Referenced by on_event(), and MaxOS::gui::Desktop::on_mouse_move_event().
Called when the mouse is released.
| button | The button that was released |
Reimplemented in MaxOS::gui::Desktop.
Definition at line 60 of file mouse.cpp.
Referenced by on_event().