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

Holds the state of the keyboard. More...

#include <keyboard.h>

Public Attributes

bool left_shift = false
 Is the left shift key pressed.
 
bool right_shift = false
 Is the right shift key pressed.
 
bool left_control = false
 Is the left control key pressed.
 
bool right_control = false
 Is the right control key pressed.
 
bool left_alt = false
 Is the left alt key pressed.
 
bool right_alt = false
 Is the right alt key pressed.
 
bool caps_lock = false
 Is caps lock enabled.
 
bool number_pad_lock = false
 Is number pad lock enabled.
 
bool scroll_lock = false
 Is scroll lock enabled.
 

Detailed Description

Holds the state of the keyboard.

Todo:
Add functions like is_shift_pressed() and similar

Definition at line 216 of file keyboard.h.

Member Data Documentation

◆ caps_lock

bool MaxOS::drivers::peripherals::KeyboardState::caps_lock = false

Is caps lock enabled.

Definition at line 230 of file keyboard.h.

Referenced by MaxOS::drivers::peripherals::KeyboardInterpreterEN_US::on_stream_read().

◆ left_alt

bool MaxOS::drivers::peripherals::KeyboardState::left_alt = false

Is the left alt key pressed.

Definition at line 226 of file keyboard.h.

Referenced by MaxOS::drivers::peripherals::KeyboardInterpreterEN_US::on_stream_read().

◆ left_control

bool MaxOS::drivers::peripherals::KeyboardState::left_control = false

Is the left control key pressed.

Definition at line 224 of file keyboard.h.

Referenced by MaxOS::drivers::peripherals::KeyboardInterpreterEN_US::on_stream_read().

◆ left_shift

bool MaxOS::drivers::peripherals::KeyboardState::left_shift = false

Is the left shift key pressed.

Definition at line 222 of file keyboard.h.

Referenced by MaxOS::drivers::peripherals::KeyboardInterpreterEN_US::on_stream_read().

◆ number_pad_lock

bool MaxOS::drivers::peripherals::KeyboardState::number_pad_lock = false

Is number pad lock enabled.

Definition at line 231 of file keyboard.h.

Referenced by MaxOS::drivers::peripherals::KeyboardInterpreterEN_US::on_stream_read().

◆ right_alt

bool MaxOS::drivers::peripherals::KeyboardState::right_alt = false

Is the right alt key pressed.

Definition at line 227 of file keyboard.h.

Referenced by MaxOS::drivers::peripherals::KeyboardInterpreterEN_US::on_stream_read().

◆ right_control

bool MaxOS::drivers::peripherals::KeyboardState::right_control = false

Is the right control key pressed.

Definition at line 225 of file keyboard.h.

Referenced by MaxOS::drivers::peripherals::KeyboardInterpreterEN_US::on_stream_read().

◆ right_shift

bool MaxOS::drivers::peripherals::KeyboardState::right_shift = false

Is the right shift key pressed.

Definition at line 223 of file keyboard.h.

Referenced by MaxOS::drivers::peripherals::KeyboardInterpreterEN_US::on_stream_read().

◆ scroll_lock

bool MaxOS::drivers::peripherals::KeyboardState::scroll_lock = false

Is scroll lock enabled.

Definition at line 232 of file keyboard.h.


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