VgaGames 3 - Network man-pages

[.. upper level ..]

VG3_nw_changekey()

Replace a network-key with another key.
SYNTAX
void VG3_nw_changekey(struct vg3_nwclient *nwclnt, int jid, int keyidx, int keynew)

FUNCTION PARAMETERS
nwclnt Network-struct
jid Joystick-ID or 0 = keyboard
keyidx Previous key, button or axis
keynew New key, button or axis:
- for keyboard: one of the values of VGAG3_KEYS
- for gamecontroller: one of the values of VGAG3_GCS
- for joystick: joystick-input-keynumber (starting from 1)

DESCRIPTION
Replace a network-key with another key. This function is useful if a player changes during the game a key of a specific action, which could be done via the system-menu. The network structure still keeps the old key, which has to be replaced with this function.

SEE ALSO
VG3_nw_addkey() VG3_nw_haskey()