4.4. struct s3d_evt

struct s3d_evt {
	unsigned char event;
	int length;
	char *buf;
	struct s3d_evt *next;

This is the event information holder.


gives the event type


gives the length of the buffer *buf


is the pointer to the multiple purpose buffer, which will have more specific information about the object


can be safely ignored ;)

Depending on the event, buf can contain the keycode pressed on keyboard event, the mouse button state on a mouse event, object information etc.