摘要 |
<p>In a computer system having an input device for controlling a position of a cursor on a display screen, a method of compensating for a physical orientation of the input device relative to the display screen. Initially, the physical orientation of the input device in relation to the display screen is determined. If the input device has been rotated, a first set of values corresponding to movement in the X axis is swapped with a second set of values corresponding to movement in the Y axis. Next, the sign of the first set of values corresponding to the Y axis is changed. Thereby, a horizontal movement indicated by the rotated input device produces a horizontal movement of the cursor. Likewise, a vertical movement indicated by the rotated input device corresponds to a vertical movement of the cursor.</p> |