Obtains the next available keystroke from the specified screen.
#include <screen.h>
void GetKey (
scr_t scrID,
uint8_t *type,
uint8_t *value,
uint8_t *status,
uint8_t *scancode,
size_t linesToProtect);
(IN) Specifies the screen from which to retrieve a keystroke.
(OUT) Points to the key type. See Section 23.2, Key Types.
(OUT) Points to the ASCII value of the key that was pressed.
(OUT) Indicates whether a modifier key was pressed, for example the Shift Key. For a list of possible values, see Section 23.3, Key Status
(OUT) Points to the codes emitted by the keyboard when a key is pressed.
(IN) Specifies the number of lines that have to be protected from the current input row upwards. Thus, if linesToProtect is 2 and the current input row number is 4, rows 3 and 4 have to protected.
For sample code, see Scroll.c.