VgaGames 3 - Event man-pages

[.. upper level ..]

VG3_gamecontroller_ispressed()

Returns whether a specific button/axis of the gamecontroller/joystick is pressed.
SYNTAX
int VG3_gamecontroller_ispressed(void *wstruct, int jid, int gcidx, int flag)

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)
flag Kind of key-pressing: one of the values of VGAG3_PRESSED

RETURN VALUE
Returns integer: - 0: Button/axis is not (new) pressed - 1: Button/axis is (new) pressed

DESCRIPTION
Return whether a specific button/axis of the gamecontroller/joystick is pressed. If flag is VGAG3_IS_PRESSED, the return value will be 1, if the button/axis is being pressed. If flag is VGAG3_IS_NEW_PRESSED, the return value will be 1, if the button/axis is new pressed and has not been asked before with this function.

SEE ALSO
VG3_gamecontroller_getpressed()