(08-07-2023, 03:34 PM)TerryRitchie Wrote:(08-07-2023, 02:36 PM)bplus Wrote: Yeah this is essential functionality, it is core of my GUI stuff and just about any game I've done.Thanks for pointing that out. I'm going to investigate SdlBasic's commands related to this and see if I can replicate a library. There have been a few times I've coded something similar to the example I posted for projects over the years. It would be nice to have a library to call upon instead.
SdlBasic called these MouseZones and had a function for IDing which you were in.
Update:
Ah, ok, I see, it's a function that returns the status of the mouse pointer in a defined area.
https://www.sdlbasic.altervista.org/main...one().html
Functionality I've created thousands of times over the years. A command like this added to QB64 would be very helpful hint...hint...
Need to test the daylights out of it first, but _mouseZone(x,y,w,h), w and h being optional, as in _mouseZone(x,y) meaning 1 pixel wide and 1 pixel tall, later tonight in a new version of BAM.
No pressure ?
ARG! Screenshot did not capture the mouse pointer.