1scancode_to_name(3)             Allegro manual             scancode_to_name(3)
2
3
4

NAME

6       scancode_to_name - Converts a scancode to a key name. Allegro game pro‐
7       gramming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       const char *scancode_to_name(int scancode);
14

DESCRIPTION

16       This function returns a string pointer containing the name of they  key
17       with the given scancode. This is useful if you e.g. let the user choose
18       a key for some action, and want to display  something  more  meaningful
19       than just the scancode. Example:
20
21          char const *keyname = scancode_to_name(scancode);
22          allegro_message("You pressed the %s key.", keyname);
23
24

SEE ALSO

26       scancode_to_ascii(3), exkeys(3)
27
28
29
30Allegro                          version 4.2.3             scancode_to_name(3)
Impressum