VgaGames 3 - Event man-pages

[.. upper level ..]

VG3_gamecontroller_getpressed()

Returns which button/axis of the gamecontroller/joystick is exclusively pressed.
SYNTAX
int VG3_gamecontroller_getpressed(struct vg3_window *wstruct, int jid)

FUNCTION PARAMETERS
wstruct Window-struct
jid Joystick-ID

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 no button/axis or more than one is pressed.

DESCRIPTION
Return button/axis which is exclusively pressed, if any. Useful for redefining buttons/axes in the system-menu.

SEE ALSO
VG3_gamecontroller_ispressed()