<p>A pointing device includes accelerometers and rotational sensors that are coupled to a processor. The processor samples the accelerometers and rotational sensors to detect gravity and pointing device motion and uses algebraic algorithms to calculate roll compensated cursor control signals. The processor transmits the cursor control signals to a receiver that is coupled to an electronic device that moves the cursor on the visual display.</p>