StuBS
|
Handles keystrokes. More...
#include <device/keyboard.h>
Public Member Functions | |
Keyboard () | |
Constructor. | |
void | plugin () |
Initialization of the keyboard. More... | |
void | trigger () override |
Handling of keyboard interrupts. More... | |
Public Member Functions inherited from Gate | |
Gate () | |
Constructor. | |
virtual | ~Gate () |
Destructor. More... | |
virtual void | trigger ()=0 |
Device-specific interrupt handler. More... | |
Handles keystrokes.
This class ensures correct initialization of the keyboard and, above all, its interrupt handling.
void Keyboard::plugin | ( | ) |
Initialization of the keyboard.
Initialization of the keyboard and activation of the specific interrupt handling: The object will register itself at the Plugbox and configure the IOAPIC to receive the corresponding interrupts.
|
overridevirtual |
Handling of keyboard interrupts.
Processes interrupts triggered by the keyboard. On each keystroke it outputs the corresponding character on the screen – only valid keys are printed, for the sake of simplicity all in a separate line dedicated to the keyboard. If the key combination Ctrl + Alt + Del is pressed, a reboot is triggered.
Implements Gate.