VgaGames 3 - System-menu man-pages

[.. upper level ..]

VG3_sysmenu_getkeyval()

Return the registered key/button/axis from the system-menu via a reference number.
SYNTAX
int VG3_sysmenu_getkeyval(struct vg3_sysmenu *sysm, int jid, int keyref)

FUNCTION PARAMETERS
sysm System-menu-struct
jid Joystick-ID or 0 = keyboard
keyref Reference number of the entry to be searched

RETURN VALUE
Returns key/button/axis - for keyboard: one of the values of VGAG3_KEYS - for gamecontrollers: one of the values of VGAG3_GCS - for joysticks: joystick-input-keynumber (starting from 1)

DESCRIPTION
Return the registered key/button/axis from the system-menu via the reference number used when inserting an entry into the system-menu. If the reference number is not found, VGAG3_KEY_NOKEY respectively VGAG3_GC_NOKEY is returned.

SEE ALSO
VG3_sysmenu_simple_keyboardentry() VG3_sysmenu_simple_gcentry() VG3_sysmenu_savestring_find()