| _keytest | Function (Macro)

kbd.h

short _keytest (short row, short col);

Low-level keyboard reading for single keys.

_keytest uses _rowread to read the key in a specific row and column. If the parameters are constants, the argument for _rowread and the return mask are optimized into single values.
_keytest returns TRUE if the key is being held down, and FALSE otherwise.
Be sure to read the notes about _rowread.
compat.h defines constant pairs for all keys. Using these constant pairs, you can use _keytest in this way:

    if (_keytest (RR_ESC))
      ...

Uses: _rowread

See also: _keytest_optimized