NAME
====
  vg_nw_keypressed() - only master: check pressed keys of client


SYNOPSIS
========
  int vg_nw_keypressed(int key, int type)


DESCRIPTION
===========
  This function is nearly the same as vg_key_pressed()
  with the difference that not keys of the local computer are examinated
  but that of a network client.
  Only the master calls this function.

  Before calling this function, the function vg_nw_recvkeys() has to be
  called, and only if it returns 1, vg_nw_keypressed() may be called.

  vg_nw_recvkeys() sets internally a bytefield of the pressed keys,
  so the call of vg_nw_keypressed() always refers to the client, whose number
  was passed to vg_nw_recvkeys().

  key and type are the same as in vg_key_pressed().

  Refer to Understanding network.


RETURN VALUE
============
  If the key is pressed, it returns 1,
  if the key is not pressed, it returns 0.


SEE ALSO
========
  Index
  Understanding network
  vg_nw_setplayer()
  vg_nw_startserver()
  vg_nw_connect()
  vg_nw_waitforconnects()
  vg_nw_setvar()
  vg_nw_getvar()
  vg_nw_setcommon()
  vg_nw_getcommon()
  vg_nw_dumppacket()
  vg_nw_sendinit()
  vg_nw_recvinit()
  vg_nw_myplayer()
  vg_nw_maxplayer()
  vg_nw_virtualplayer()
  vg_nw_isalive()
  vg_nw_recvkeys()
  vg_nw_mousepressed()
  vg_nw_mousex()
  vg_nw_mousey()
  vg_nw_senddata()
  vg_nw_sendcommon()
  vg_nw_setdead()
  vg_nw_dumpsprite()
  vg_nw_undumpsprite()
  vg_nw_close()