Added missing documentation.
Don't try to generate a wheel event if generating a mouse button event failed because we don't want those.
More handy aliases.
Optimise the event filtering with the help of Xorg's own event filter.
Optimise event processing when we are not interrested in joystick events.