MIST fixes for joystick and OSD.  Made mouse detection more robust - added generics to guide the OSD code.