VG3_gamecontroller_num2name()
Returns the name of a button/axis of a gamecontroller/joystick.SYNTAX
const char *
VG3_gamecontroller_num2name(struct vg3_window *wstruct,
int jid,
int gcidx)
FUNCTION PARAMETERS
wstruct | Window-struct |
jid | Joystick-ID |
gcidx | Button or axis: - for gamecontrollers: one of the values of VGAG3_GCS - for joysticks: joystick-input-keynumber (starting from 1) |
RETURN VALUE
Returns constant string: the name of the button/axis
or empty string if invalid
DESCRIPTION
Return the name of a button/axis of a gamecontroller/joystick as a constant string,
e.g. "X" for VGAG3_GC_BUTTON_X or "DPAD-Down" for VGAG3_GC_BUTTON_DPAD_DOWN
SEE ALSO