Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SuperLib 3.50 - function rat_erbhd() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FUNCTION RAT_ERBHD()

  Short:
  ------
  RAT_ERBHD() Determines if right mouse button is held down

  Returns:
  --------
  <lHeldDown> => is RMB held down

  Syntax:
  -------
  RAT_ERBHD([nSeconds])

  Description:
  ------------
  Determines if right mouse button is held down by
  calling the ASM function RAT_RBHD() for [nSeconds]. Default for
  [nSeconds] is .1 seconds. If the right mouse button is held down
  during that time frame, True is returned, else False is returned.

  [nSeconds]   is optional seconds to test for. Default
  is .1 seconds.

  This is different from the .ASM function RAT_RBHD().
  RAT_ERBHD(<n>) watches the mouse for <n> seconds, and if the
  mouse remains depressed for the full time, then it is considered
  to be HELD DOWN.  RAT_RBHD() on the other hand, only checks for
  the mouse button being depressed RIGHT NOW. RAT_ERBHD() calls
  RAT_RBHD() repetitively.

  Examples:
  ---------
   if rat_erbhd()

     ?"While you were out:"

     ?"Right button was depressed and held down at"

     ??rat_eqmrow(),rat_eqmcol()

   endif

  Source:
  -------
  S_MOOSE.PRG


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