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

🖥 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...