I hacked my Happ/GT trackball a couple of weeks ago and have been having a small problem with it:
I wired it to an old PS/2 wheelmouse I had lying around and it works fine for Mame, but when using it to move around in Windows it seems to think I'm trying to use the mouse-wheel sometimes and selects windows that the mouse pointer is just passing by.
At first it was scrolling up+down randomly in a window, I installed TweakUI and disabled the wheel-scroll function and this problem cleared itself up.
But I'm still having the strange 'selecting windows I don't want to be in' problem. I removed the mouse-wheel's receiver and it's still doing it.
