|
StuBS
|
Handles keystrokes. More...
#include <device/keyboard.h>
Public Member Functions | |
| Keyboard () | |
| Constructor. | |
| void | plugin () |
| Initialization of the keyboard. | |
| void | trigger () override |
| Handling of keyboard interrupts. | |
Public Member Functions inherited from Gate | |
| Gate () | |
| Is this epiloque already marked for execution Add a member that stores the information whether a Gate has already been queued. | |
| virtual | ~Gate () |
| Destructor. | |
Private Member Functions | |
| Keyboard (const Keyboard &)=delete | |
| Keyboard & | operator= (const Keyboard &)=delete |
Handles keystrokes.
This class ensures correct initialization of the keyboard and, above all, its interrupt handling.
|
privatedelete |
|
inline |
Constructor.
| 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.