Friday, December 30, 2022

🪲 GETMOUSE: fixed mouse left-button locking issue

wwwBASIC behaviour: when left-mouse button is pressed and held, and mouse pointer leaves the window of the running program, wwwBASIC considers the mouse button still pressed and does not check state of mouse button when mouse hovers back over the program.


The version of wwwBASIC embedded in BASIC Anywhere Machine has been modified so that:

BAM's behaviour: when left-mouse button is pressed and held, and mouse pointer leaves the window of the running program, BAM considers the mouse button no longer pressed and BAM does check state of mouse button when mouse hovers back over the program


Bug Demonstration




GETMOUSE

Description:

Syntax

GETMOUSE x%, y%
GETMOUSE x%, y%, w%
GETMOUSE x%, y%, w%, b%

  • x% = horizontal position
  • y% = vertical position
  • w% = accumulation of wheel increments and decrements since the last call to the function 
  • b% = button

No comments:

Post a Comment

🖥 Fan Dance

This is a port and mod of a SpecBAS program by ZXDunny. Run the program View the source code And, a "less is more?" version: Run t...