Pure theory... my trackball is already working...
but, I read about people connecting opto components from ancient mice to PS2 ports to get around using an IPAC, and someone trying to find a suitable USB mouse and having difficulty...
so, here's what I was thinking. My Happ trackball has a hole on the underside where the ball shows through to the bottom. (this is so you can put a lamp there and make it glow.) Well, what if you just duct-taped an optical mouse over the hole? Or took the optical eye out and taped that in, if you needed it to be closer? Would that work?
Same thing for a spinner. What if you just stuck an axle with a paper cylinder on it underneath your spinner, and duct-taped an optical mouse next to it? I bet you'd have a new record for least time spent making a spinner.
Depends how cheap you can get an optical mouse though. Maybe there are some first-release models that have been overshadowed by newer models and are now dirt cheap.