摘要 |
PURPOSE:To control the movement of a cursor in a small space by increasing the moving distance of a cursor set when a mouse device is moved with acceleration compared with the moving distance of the cursor set when the mouse device is moved at constant speed. CONSTITUTION:A mouse device 1 outputs the extents of movement dx and dy per unit time. A movement extent comparing and deciding part 3a compares the absolute values of the dx and dy with the absolute values of the previous extents of movement dx0 and dy0. When ¦dx¦>¦dx0¦ or ¦dy¦>¦dy0¦ is decided, a mouse controller 3b adds the value obtained by multiplying an increase amount (dx-dx0) or (dy-dy0) by the value alpha(alpha>0), the values dx and dy, and the previous coordinate data X and Y on the cursor to decide the present coordinate data. While if ¦dx¦<=¦dx0¦ or ¦dy¦<=¦dy0¦ is decided, the values dx and dy are added to the data X and Y to decide the present coordinate data.
|