adime_scancode_to_short_name (3) - Linux Manuals

NAME

adime_scancode_to_short_name

SYNOPSIS

#include <adime.h>

char *adime_scancode_to_short_name(int scancode, char *buf)

DESCRIPTION

Converts a keyboard scancode to a string. The string is exactly the text after `KEY_' in the macro name for the key (so the function returns "DELETE" if you feed it with KEY_DELETE). Returns the buffer, or NULL if the scancode didn't match any known key.