Max OS 0.3
Loading...
Searching...
No Matches
MaxOS::drivers::peripherals::KeyUpEvent Class Reference

Event that is triggered when a key is released. More...

#include <keyboard.h>

Inheritance diagram for MaxOS::drivers::peripherals::KeyUpEvent:
MaxOS::common::Event< KeyboardEvents >

Public Member Functions

 KeyUpEvent (KeyCode, const KeyboardState &)
 Constructor for the KeyUpEvent 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 released.
 
KeyboardState keyboard_state
 The state of the keyboard when the key was released.
 
- Public Attributes inherited from MaxOS::common::Event< KeyboardEvents >
KeyboardEvents type
 
uint8_tbuffer_value
 
uint32_t int_value
 
bool bool_value
 
union { 
 
   uint8_t *   buffer_value 
 
   uint32_t   int_value 
 
   bool   bool_value 
 
return_value 
 

Detailed Description

Event that is triggered when a key is released.

Definition at line 248 of file keyboard.h.

Constructor & Destructor Documentation

◆ KeyUpEvent()

KeyUpEvent::KeyUpEvent ( KeyCode  key_code,
const KeyboardState keyboard_state 
)

Constructor for the KeyUpEvent class.

Parameters
key_codeThe keycode of the key that was released
keyboard_stateThe state of the keyboard when the key was released

Definition at line 677 of file keyboard.cpp.

678: Event<KeyboardEvents>(KeyboardEvents::KEYUP),
681{
682}
Stores the left, top, width and height of a rectangle.
Definition rectangle.h:22
KeyboardState keyboard_state
The state of the keyboard when the key was released.
Definition keyboard.h:254
KeyCode key_code
The key code of the key that was released.
Definition keyboard.h:253

Member Data Documentation

◆ key_code

KeyCode MaxOS::drivers::peripherals::KeyUpEvent::key_code

The key code of the key that was released.

Definition at line 253 of file keyboard.h.

◆ keyboard_state

KeyboardState MaxOS::drivers::peripherals::KeyUpEvent::keyboard_state

The state of the keyboard when the key was released.

Definition at line 254 of file keyboard.h.


The documentation for this class was generated from the following files: