VgaGames4

VgaGames4 - input man-pages

[.. upper level ..]

# vg4->input->key_uniqpressed()

Return an uniquely pressed key of a device.

SYNTAX
int vg4->input->key_uniqpressed(int gcid, const char **name)
FUNCTION PARAMETERS

gcid | Which device to check: 0 = keyboard or >0 = gamecontroller-ID
name | For returning static pointer to key-name, (may be NULL)

RETURN VALUE
Returns key-code: - VG_INPUT_NOKEY - one of VG_INPUT_KBDCODES for keyboard - one of enum VG_INPUT_GCBUTTONS/VG_INPUT_GCAXES for a gamecontroller
DESCRIPTION
Return an uniquely pressed key of a device. As long as just one key/button/axis is pressed, this function returns its key-code. If name is not NULL it points to the name of the returned key-code. The use of this function is for redefining key-codes.
SEE ALSO
vg4->input->key_pressed() vg4->input->key_newpressed()