Ok, I didnt really look at your code, but I am an A+ certified computer tech and one thing alot of people dont realize is that the computer locks on to a PS2 mouse when its first booted to BIOS. In a nutshell, if you accidentaly unplug your ps2 mouse and then plug it back in there is a very good chance (though granted not all the time) that you will actually have to turn the PC off and back on again. Not even a reboot will fix it. So if your just booting into what ever os you use, then unplug your mouse and plug in your project its probably not going to work. At least thats how things work in the IBM/PC world, mac might be different. So in a nut shell try shutting down, plug in your project and fire it back up. Of course then there is the chance you might get hounded with a mouse not detected error. Ive never really gotten that deep in to them. And again like I said some times its not even an issue as it depends alot on the mb, the mouse, and sometimes even the OS. Just a thought.
Bookmarks