could you mount it on the mast or under the jib on the spin pole, and connect it to the jib clew? As that thing slides to the new tack, it could rotate the computer the opposite direction (pointing toward the high side)?
Maybe just something that the jib clew (or jib traveler) hits on its way across the deck that rotates the computer to the other direction?