I hope it's not a Complex Interface Adapter chip. Do you try to hot-swap joysticks and mouses while the computer is running? If so, it's probably the CIA chip. An easy way to make sure is to switch the two CIA chips and see if something else fails and the mouse port works correctly.