04-03-2023, 03:59 PM
(04-03-2023, 02:12 PM)Petr Wrote: ... To problem with mouse. I can not replicate this bug here, so you can help me find who is problem under Linux. My tip is - try comment statement _MouseMove - line 49. If this not help, try also comment _MouseHide - row 43. ...
Taking line 49 out of commission did the trick. Turning _MouseHide into a comment did no good because it's outside the main loop. I tried this on a different Linux OS installation and instead of crashing to terminal, the program hanged strictly locking the mouse to the center of its window. Never had that happen to me before even on Windows. :/
It looks like the inner workings of _MouseMove collides somewhere with the OpenGL stuff. It might be a thread conflict or a race condition. It indicates that the programmer has the choice to compose entirely of OpenGL statements and functions to do graphics and HID response, or to utilize the ordinary ones in QB64(PE) like LINE, _KeyDown and _MouseMove. One or the other, not both.