Decoder for keyboard codes received from the PS2Controller.
More...
#include <machine/keydecoder.h>
Decoder for keyboard codes received from the PS2Controller.
Extracts the make and break codes, modifier and scan codes from the pressed key.
◆ KeyDecoder()
KeyDecoder::KeyDecoder |
( |
| ) |
|
|
inline |
◆ decode()
Interprets the make and break codes received from the keyboard and derives the corresponding scan code and further information about other pressed keys, such as shift and ctrl.
- Parameters
-
code | Byte from Keyboard to decode |
- Returns
- Pressed key (Key::valid returns
false
if the key is not yet complete)
◆ prefix
◆ modifier
activated modifier keys (e.g., caps lock)
◆ status
Current state (pressed or released) of all keys.
The documentation for this class was generated from the following files: