Implement a keyboard handler in order to have more precise control of the keys pressed, repeated, released and the currently pressed (SHIFT, CTRL, ALT) and locked shifts (CAPS LOCK, NUM LOCK, SCROLL LOCK, PAUSE. INSERT).
Define a data structure that contains:
the ASCII code
the scan code
a virtual code (which normalizes the value of the key regardless of the pressed shifts or other modifiers)
Implement a keyboard handler in order to have more precise control of the keys pressed, repeated, released and the currently pressed (
SHIFT
,CTRL
,ALT
) and locked shifts (CAPS LOCK
,NUM LOCK
,SCROLL LOCK
,PAUSE
.INSERT
).Define a data structure that contains: