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_releases()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_RELEASES()


Syntax:        L_RELEASES(<expN>)


Purpose:       To determine the number of button presses of the
               specified button.


Arguments:     <expN> is the button number of interest and must be in
               the range of 1 to 3 according to the mouse type in use.


Returns:       A integer value in the range of 0 and 32767.
               -1 = Syntax Error


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


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

               x1 = L_RELEASES(left)

               inkey(1.5)                       && slow it down
               x2 = L_RELEASES(right)
               inkey(.5)
               y1 = L_RELEASES(left)
               inkey(.5)
               y2 = L_RELEASES(right)
               inkey(.5)
               p = L_RELEASES(button)


Language:      Assembler

See Also: L_XRELEASE() L_PRESSES() L_XPRESS() L_YPRESS()

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