MouseInApp - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Prolific Programmers (https://qb64phoenix.com/forum/forumdisplay.php?fid=26) +---- Forum: SMcNeill (https://qb64phoenix.com/forum/forumdisplay.php?fid=29) +---- Thread: MouseInApp (/showthread.php?tid=2041) |
MouseInApp - SMcNeill - 09-27-2023 As per posts in a few different topics, here's a simple way to determine if a mouse is inside the program window or not. (This works just for Windows, but you Linux/Mac guys should be able to substitute for whatever the equivalent of the Windows API call of GetCursorPos is. I just don't know your OS commands good enough to know what to use for it.) Code: (Select All)
|