I couldn't find that code in at.c, but in pc_joy.c. I've changed return 0xf0; to return 0xff; but it hasn't quite fixed the problem. Super Karts still detects the joystick at start up, but no longer hangs there, so I can get in to the menu now. NBA Jam TE won't go any further because it wants me to calibrate it, Wolfenstein 3D still detects it, as does Quake and Need For Speed. If I don't specify a sound card before starting MESS, the problem goes away. In my INI files, I've got Joystick set to 0.