Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>msmotion() mouse function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  MSMOTION()                                                  Mouse Function
 Purpose..: Return the relative change of the mouse cursor
-------------------------------------------------------------------------------
 Syntax...: MsMotion( @<nRow>, @<nCol> ) --> NIL

 Arguments: @<nRow>  = number of rows moved since last function call.
            @<nCol>  = number of columns moved since last function call.

 Returns..: NIL

 Remark...: The function has internal counters which change the
            parameters passed. Once MsMotion() is called, both counters
            are reset to zero.

 Source...: MSMOTION.C
-------------------------------------------------------------------------------
 Example..: The example returns and assigns values to variables
            to show how far the mouse has moved since the last time
            MsMotion() was called.

                if nChecked > 12
                   MsMotion( @cPrevRow, @PrevCol )
                   ? cPrevRow
                   ? cPrevCol
                   ? "is the number of rows and columns moved."
                endif

See Also: MsOpen()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson