[LWJGL2] After ungrabbing a grabbed-mouse, it remains invisible

Started by orange451, September 06, 2016, 21:01:35

Previous topic - Next topic

orange451

Hiah!

In my first person shooter, I've noticed a strange issue with Mouse.setGrabbed( false ); after the mouse was previously grabbed.

In my current project, once I ungrab the mouse, it does not become visible. However, it can move around, and it does function normally. Once the mouse leaves the game window, it becomes visible. When it re-enters the window it is also visible.

I've opened some old LWJGL projects on my computer and this happens with them as well.

orange451

My mistake.

I was calling the setGrabbed() function from the logic thread (instead of the rendering thread) in both this project, and all of my previous projects. hah.

Sorry for the trouble :)