StuBS
|
Decoder for keyboard codes received from the PS2Controller. More...
#include <machine/keydecoder.h>
Public Member Functions | |
KeyDecoder () | |
Default constructor. | |
Key | decode (unsigned char code) |
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. More... | |
Public Attributes | |
bool | status [Key::Scancode::KEYS] |
Current state (pressed or released) of all keys. | |
Decoder for keyboard codes received from the PS2Controller.
Extracts the make and break codes, modifier and scan codes from the pressed key.
Key KeyDecoder::decode | ( | unsigned char | code | ) |
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.
code | Byte from Keyboard to decode |
false
if the key is not yet complete)