![]() |
Max OS 0.3
|
Handles the events that are triggered by the Keyboard Driver. More...
#include <keyboard.h>
Public Member Functions | |
| common::Event< KeyboardEvents > * | on_event (common::Event< KeyboardEvents > *) override |
| Handle the trigger of an event. | |
| virtual void | on_key_down (KeyCode, const KeyboardState &) |
| Handle the key down event. | |
| virtual void | on_key_up (KeyCode, const KeyboardState &) |
| Handle the key up event. | |
Public Member Functions inherited from MaxOS::common::EventHandler< KeyboardEvents > | |
| virtual Event< KeyboardEvents > * | on_event (Event< KeyboardEvents > *event) |
| This function is called when an event is raised. | |
Handles the events that are triggered by the Keyboard Driver.
Definition at line 274 of file keyboard.h.
|
override |
Handle the trigger of an event.
| event | The event to handle |
Definition at line 45 of file keyboard.cpp.
References on_key_down(), and on_key_up().
|
virtual |
Handle the key down event.
| key_down_code | The keycode of the key that was pressed |
| key_down_state | The state of the keyboard when the key was pressed |
Reimplemented in MaxOS::gui::Desktop, and MaxOS::gui::widgets::InputBox.
Definition at line 27 of file keyboard.cpp.
Referenced by on_event(), and MaxOS::gui::Desktop::on_key_down().
|
virtual |
Handle the key up event.
| key_up_code | The keycode of the key that was released |
| key_up_state | The state of the keyboard when the key was released |
Reimplemented in MaxOS::gui::Desktop.
Definition at line 36 of file keyboard.cpp.
Referenced by on_event(), and MaxOS::gui::Desktop::on_key_up().