keyboard_waitforupdate3
Process raw keyboard events
Part of keyboard_update(3).
Usage
#include <vgakeyboard.h>
int keyboard_update(void);
void keyboard_waitforupdate(void);
Overview
These routines check the keyboard buffer for any raw keyboard events and do the necessary updates to the internal buffers of keyboard_clearstate(3) and keyboard_keypressed(3).
When there are no such events, keyboard_update() returns 0 immediately (non-zero else) whereas keyboard_waitforupdate() blocks and waits until an event occurs.
vga_waitevent(3) allows to wait for keyboard and other events at the same time.
Releases
Unchanged in 5 releases since Debian 3.1 (Sarge).