![]() |
Max OS 0.3
|
Event that is triggered when a key is pressed. More...
#include <keyboard.h>
Public Member Functions | |
| KeyDownEvent (KeyCode, const KeyboardState &) | |
| Constructor for the KeyDownEvent class. | |
Public Member Functions inherited from MaxOS::common::Event< KeyboardEvents > | |
| Event (KeyboardEvents type) | |
| Constructs a new Event object. | |
Public Attributes | ||
| KeyCode | key_code | |
| The key code of the key that was pressed. | ||
| KeyboardState | keyboard_state | |
| The state of the keyboard when the key was pressed. | ||
Public Attributes inherited from MaxOS::common::Event< KeyboardEvents > | ||
| KeyboardEvents | type | |
| uint8_t * | buffer_value | |
| uint32_t | int_value | |
| bool | bool_value | |
| union { | ||
| uint8_t * buffer_value | ||
| uint32_t int_value | ||
| bool bool_value | ||
| } | return_value | |
Event that is triggered when a key is pressed.
Definition at line 261 of file keyboard.h.
| KeyDownEvent::KeyDownEvent | ( | KeyCode | key_code, |
| const KeyboardState & | keyboard_state | ||
| ) |
Constructor for the KeyDownEvent class.
| key_code | The keycode of the key that was pressed |
| keyboard_state | The state of the keyboard when the key was pressed |
Definition at line 662 of file keyboard.cpp.
| KeyCode MaxOS::drivers::peripherals::KeyDownEvent::key_code |
The key code of the key that was pressed.
Definition at line 266 of file keyboard.h.
| KeyboardState MaxOS::drivers::peripherals::KeyDownEvent::keyboard_state |
The state of the keyboard when the key was pressed.
Definition at line 267 of file keyboard.h.