VgaGames4 - input man-pages

[.. upper level ..]

vg4->input->key_newpressed()

Check if a key is pressed which has not yet been checked.

SYNTAX
VG_BOOL vg4->input->key_newpressed(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 which has not yet been checked. As the key-entry is checked, it refers to all its related events, i.e. keyboard or gamecontroller(s) events. After returning VG_TRUE, the next calls of this function for this key-entry will return VG_FALSE, unless the key was released and new pressed.

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