str_for_key (string, 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 |
| number |
Scancode number |
Returns:
String pointer.
Remarks:
- If NULL is given for the string pointer, the function returns a temporary string that can be passed to an instruction.
Modifies:
string
Speed:
Fast
Example:
string test[1];
...
str_for_key(test, 30); // test becomes"A"
See also:
key_pressed, key_for_string, key_set, key_lastpressed, inkey, Key functions and mapping