str_for_key (STRING*,var number);

This function copies the letter or number for the given key scancode on an US keyboard to the given string.

Parameters:

STRING* string to fill with the letter of the given scancode, or NULL.
number Scancode number

Returns:

String pointer.

Remarks:

Modifies:

STRING

Speed:

Fast

Example:

STRING* test = "";
...
str_for_key(test, 30); // test becomes"A"

See also:

key_pressed, key_for_str, key_set, key_lastpressed, inkey, Key functions and mapping

► latest version online