VgaGames 3 - Event man-pages

[.. upper level ..]

VG3_key_ispressed()

Returns whether a specific key of the keyboard is pressed.
SYNTAX
int VG3_key_ispressed(struct vg3_window *wstruct, int kbidx, int flag)

FUNCTION PARAMETERS
wstruct Window-struct
kbidx Key: one of the values of VGAG3_KEYS
flag Kind of key-pressing: one of the values of VGAG3_PRESSED

RETURN VALUE
Returns integer: - 0: Key is not (new) pressed - 1: Key is (new) pressed

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

SEE ALSO
VG3_key_getpressed()