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.

event

gives the event type

length

gives the length of the buffer *buf

*buf

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

*next

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.