> struct InputEvent {
> int msec;
> unsigned short type;
> unsigned short code;
> int value;
> };I would use anonymous union to make it easy to differentiate between mouse and keyboard variables, rather than blend them. ++L
