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

🖥A "10PRINT" Variant, BAMified

This program by Charlie Veniot is a port and mod of Ian Witham's C64 program found in this YouTube video. New colours are randomly proje...