VgaGames 3 - Event man-pages

[.. upper level ..]

VG3_key_name2num()

Returns the key of a keyboard-key by its name.
SYNTAX
int VG3_key_name2num(struct vg3_window *wstruct, const char *kbname)

FUNCTION PARAMETERS
wstruct Window-struct
kbname Name of the key

RETURN VALUE
Returns one of the values of VGAG3_KEYS or VGAG3_KEY_NOKEY if unknown key name.

DESCRIPTION
Return the key of a keyboard-key by its name, e.g. VGAG3_KEY_A for "A" or VGAG3_KEY_SPACE for "Spacebar".

SEE ALSO
VG3_key_num2name() VG3_gamecontroller_num2name() VG3_gamecontroller_name2num()