Closed DavidPetrasek closed 1 year ago
I have found a solution. Now I use only one flag like this:
interception_set_filter(context, interception_is_mouse, INTERCEPTION_FILTER_MOUSE_LEFT_BUTTON_DOWN);
And to listen to 3 remaining mouse states, for each state/flag I set up a new loop on a separate thread. I do not understand why it works now.
OS: Win 11 IDE: VS 2022 Other libraries used in my app: GLFW, GLM, OpenGL, FreeType
I am able to press and release the right mouse button with no issues, but when I release the left mouse button for the first or second time, then mouse becomes stucked in this pressed state. Though, I can still move the cursor around, I cannot click on anything again. My application consists of the main loop which runs as a thread and on the separate thread there is the method _interceptmouse below, which is being started before the main loop like this: