Mouse stops working "randomly"

so, my mouse stops working form time to time, the cursor still moves, but it only does that, the clicks, the wheel and even hovering over things does nothing, also, when the mouse is working, shit+f10 works as a replacement for right-clicking, but when it stops working, shit+f10 also stops working, I've noticed that if I stay on a single window of certain programs, it works perfectly, but when I select other windows of other programs it stops working again, sometimes it starts working for no apparent reason, but most of the time I have to unplug it and plug it in again, and even that doesn't work sometimes. It was doing the same even on the OS install screen, and it did it on the install sceen for ubuntu also. I am running linux mint 17.3
amd 8320
r9 380
m5a99x evo r2
and the mouse is a mad catz rat 7.

Check out this article


about half way down he explains his trouble shooting method

1 Like

holy shit you guys are awesome! thanks!