Here comes the really clever part: there are two reed switches inside the ball. One is used as a power switch, and the other is for setting the ‘up’ direction of the trackball. The ball ...