Is there a way to test if mouse cursor is grabbed?
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.
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.
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.