Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Mouse interface routines - <b>minkey()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 MINKEY()
 Combined key and mouse input wait state
------------------------------------------------------------------------------
 Syntax
      MInkey(<nSeconds>) -> <nInput>
 Arguments
     <nSeconds> - The maximum time (in seconds) to wait for input.
               If zero is passed, an infinite wait is executed.
               If nothing is passed, no waiting occurs.
 Returns
     <nInput> - The inkey code when a key has been struck. If the mouse
                button has been hit, then 1000 plus the mouse button value
                is returned. The mouse button values are the sum of the bits
                with bit 0=left, 1=right and 2=middle. Thus left and right
                would give a value of 1003 (= 1000+3).
 Description
     This routine impliments an Inkey type wait state with the option
     of having the mouse interupt the wait.

     This routine waits until the mouse buttons are released prior to
     starting its clock.

     This routine mimics CLIPPER's InKey() and is therefore not a
     true wait state.

     NOTE: This routine does not put the mouse cursor on the screen. If you
     want it one you must do it yourself. However, the cursor need not be
     visible for the mouse to terminate this routine.

 Examples
     MInkey(3)  // Wait for input for 3 seconds.

 Source: MOUSFUNC.PRG

 Author: Leo Letendre

See Also: MInkeyUseMouse()

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