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>msbutclear() mouse function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  MSBUTCLEAR()                                                Mouse Function
 Purpose..: Clear the previous mouse press queue
-------------------------------------------------------------------------------
 Syntax...: MsButClear() --> NIL

 Arguments: none    

 Returns..: NIL

 Source...: MSCLEAR.C
-------------------------------------------------------------------------------
 Example..: The example shows how to purge the mouse queue.

      if ( ( nKey := inkey(.01) ) == 0 )  // Get any pending keystrokes
         MsButClear( )  ;;                // Clear out old presses
         nMsButton := MsButton( )         // Get button info from the queue
      endif

See Also: MsButton()

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