VgaGames4 - input man-pages

[.. upper level ..]

vg4->input->key_pressed()

Check if a key is pressed.

SYNTAX
VG_BOOL vg4->input->key_pressed(int keyref)

FUNCTION PARAMETERS
keyref key-entry reference-number

RETURN VALUE
Returns boolean: - VG_TRUE: Pressed - VG_FALSE: Not pressed

DESCRIPTION
Check if a key is pressed. As the key-entry is checked, it refers to all its related events, i.e. keyboard or gamecontroller(s) events. As long as the key is pressed, this function returns VG_TRUE.

SEE ALSO
vg4->input->key_newpressed() vg4->input->key_uniqpressed() vg4->nw->key_pressed()