1
QB64 Discussion / Mouse Controls
« on: May 16, 2021, 09:06:10 pm »
Something I've never understood is, why is stuff related to the mouse so janky? With INKEY$ and _KEYDOWN() for example, they just work. If a key is pressed while INKEY$ or _KEYDOWN() are being invoked, they will report it to you accordingly. But with all the mouse commands, such as _MOUSEBUTTON(), why don't they work in the same sort of way? Why do I need to call _MOUSEINPUT for any of the other mouse commands to work at all? As a result, getting mouse controls to work is always much harder than it really should be. I can and have gotten mouse controls to work in two different programs, but in both cases it took me awhile to do, and making changes can easily cause it to stop working.