Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_presses()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_PRESSES()


Syntax:        L_PRESSES(<expN>)


Purpose:       To determine the number of times a specified button has
               been pressed since the last call to this function.


Arguments:     <expN> is the button for which information is required
               and must be in the range of 1 to 3 depending upon the
               type of mouse in use.


Returns:       A integer value in the range of 0 and 32767.


Usage:         This internal number of presses is reset to 0 after
               this function call.


Examples:      * initialise button variables
               left = 0
               right = 1
               button = left

               x1 = L_XPRESS(left)
               inkey(1.5)                       && slow it down
               x2 = L_XPRESS(right)
               inkey(.5)
               y1 = L_YPRESS(left)
               inkey(.5)
               y2 = L_YPRESS(right)
               inkey(.5)
               p = L_PRESSES(button)


Language:      Assembler

See Also: L_GETXPOSN() L_GETYPOSN() L_GETMSTAT() L_XPRESS()

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