allegro5 icon indicating copy to clipboard operation
allegro5 copied to clipboard

Is there a way to test if mouse cursor is grabbed?

Open 60rntogo opened this issue 5 years ago • 2 comments

The docs for al_grab_mouse say "Do not assume that the cursor will remain confined until you call al_ungrab_mouse. It may lose the confined status at any time for other reasons." Is there a way to test if the cursor is confined at the moment? If not, perhaps it would be useful to add a function that tests this. It could return pointer to the display or NULL if the cursor is not confined.

60rntogo avatar Jun 15 '20 16:06 60rntogo

And also like say in the doc: "It may lose the confined status at any time for other reasons."

Like you still don't be sure if it are confined, even if you make a own boolean variable for check it.

rmbeer avatar Feb 25 '23 19:02 rmbeer

well, it's leave it like a open feature. But is need to clarify if exist systems that make ungrab mouse or not confined, and which systems. And then modify the documentations.

rmbeer avatar Feb 25 '23 20:02 rmbeer