void usleep(unsigned long usec);
DESCRIPTION
The usleep() function
suspends execution of the calling
process for usec microseconds.
The sleep may be length-
ened slightly by any
system activity or by the time spent
processing the call.
/* Verifica se existe alguma tecla disponível */
int WCheckKBD(WINDOW *w);
/* Pega a próxima tecla e retorna o código X.
* Veja em $INC/X11/keysymdef.h */
KeyCode WGetKey(WINDOW *w);
/* Retorna o KeySym da última tecla lida */
KeySym WLastKeySym();
#define XK_Left 0xFF51 /* Move left, left arrow */
#define XK_Up 0xFF52 /* Move up, up arrow
*/
#define XK_Right 0xFF53 /* Move right, right arrow */
#define XK_Down 0xFF54 /* Move down, down arrow */
#define XK_j 0x06a
#define XK_k 0x06b
Pode ser uma boa dar duas opções para o usuário,
e.g., além de usar as flechas, ele poderia também usar as
teclas 'j' e 'k' para movimentar o barco.