VgaGames 3 - Event man-pages

[.. upper level ..]

VG3_gamecontroller_name2num()

Returns the button/axis by its name.
SYNTAX
int VG3_gamecontroller_name2num(struct vg3_window *wstruct, int jid, const char *gcname)

FUNCTION PARAMETERS
wstruct Window-struct
jid Joystick-ID
gcname Name of the button/axis

RETURN VALUE
Returns - for gamecontrollers: one of the values of VGAG3_GCS - for joysticks: joystick-input-keynumber (starting from 1) or VGAG3_GC_NOKEY if unknown.

DESCRIPTION
Return the button/axis of a button/axis of a gamecontroller/joystick by its name, e.g. VGAG3_GC_BUTTON_X for "X" or VGAG3_GC_BUTTON_DPAD_DOWN for "DPAD-Down".

SEE ALSO
VG3_gamecontroller_num2name() VG3_key_num2name() VG3_key_name2num()