home *** CD-ROM | disk | FTP | other *** search
Wrap
{\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f2\fmodern Ohlfs;\f1\fmodern Courier;\f3\fswiss Helvetica;} \paperw10800 \paperh8020 \margl120 \margr120 {\colortbl;\red0\green0\blue0;} \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q: \fc1\cf1 How can I get my mouse pointer to stop jumping around, and to glide smoothly across the screen? \ \ A: Type the following command into a shell window:\ \ % \f2\fs22 dwrite NeXT1 MouseScaling " \f1\i\fs24 string \f2\i0\fs22 "\ \f0\fs28 \ Where \f2\fs22 " \f1\i\fs24 string \f2\i0\fs22 " \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\f0\fs28\fc1\cf1 \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc1\cf1 contains \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\fc1\cf1 a single value indicating the number of integer pairs to follow, followed by the actual pairs. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc1\cf1 The integer pairs are (speed, acceleration) pairs. These integer pairs make the mouse movement on the screen dependent both on the distance the mouse was moved on the pad, and its acceleration and speed. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\fc1\cf1 When you change the mouse speed through \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc1\cf1 the P \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\fc1\cf1 references \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc1\cf1 application \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\fc1\cf1 , it creates one of these. Here's \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc1\cf1 the format of a \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\fc1\cf1 MouseScaling argument:\ \ \f2\fs22 % dwrite NeXT1 MouseScaling "N x1 a1 x2 a2 x3 a3 x4 a4 ... xN aN"\ \f0\fs28 \ To give the mouse a smoother motion across the screen, you must make the mouse movement linear (uniform, but slow). This \b dwrite \b0 will do the trick:\ \ \f2\fs22 % dwrite NeXT1 MouseScaling "1 1 1"\ \f0\fs28 \ This means that if you move the mouse \f2\fs22 x \f0\fs28 amount on the pad, it moves it by \f2\fs22 kx \f0\fs28 pixels on the screen regardless of how long it took. ( \f2\fs22 k \f0\fs28 is the constant which translates the mouse pad coordinate system to the screen coordinate system.)\ \ \i Warning \i0 : we cannot guarantee the support of \b dwrite \b0 s in future releases, so do not put this in your application or rely on it in any way. \f3 \ \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\fc1\cf1 \ QA775\ \ Valid for 2.0, 3.0, 3.1\ \