Monday, August 7, 2023

🆕 _MOUSEZONE function

Latest version of BASIC Anywhere Machine.

Test program:


Description:

The _MOUSEZONE function checks whether or not the mouse pointer is in the defined "zone", the area specified by the top-left corner coordinates, the width, and the height parameters.

Syntax




  • return value
    • -1 if TRUE (i.e. mouse pointer is in the defined area)
    • 0 if FALSE
  • x%
    • horizontal pixel position of the area's top-left corner
  • y%
    • vertical pixel position of the area's top-left corner
  • width% (optional)
    • the pixel width of the area
    • if not specified, then assumed to be 1
  • height% (optional)
    • the pixel width of the area
    • if not specified, then assumed to be 1
  • width% and height% must
    • both be specified
    • OR: both not be specified

No comments:

Post a Comment

🖥 Pongy game

This program is a port (and slight mod) of the QB64pe program by SierraKen.  (SierraKen's program shared with the QB64pe community in th...