VgaGames4

VgaGames4 - network man-pages

[.. upper level ..]

# vg4->nw->key_pressed()

Check if a network-key for a client is pressed.

SYNTAX
VG_BOOL vg4->nw->key_pressed(int clnr, int keyref)
FUNCTION PARAMETERS

clnr | Client-number
keyref | key-entry reference-number

RETURN VALUE
Returns boolean: - VG_TRUE: Pressed - VG_FALSE: Not pressed
DESCRIPTION
Check if a network-key for a client is pressed. This function behaves as vg4->input->key_pressed(), but must be used for network-keys (see vg4->input->key_insert()). Input-events for network-keys are sent to the network-server, which re-sends them to all clients. So this function checks for the given client-number if a network-key is pressed. For non-network-keys vg4->input->key_pressed() must still be used.
SEE ALSO
vg4->nw->key_newpressed() vg4->input->key_pressed()