Fixed problem with EV_SYN not bein sent with joystick events and a few miscellaneous other things.