Open Kapouett opened 2 years ago
If you have any ideas how to do it, I would welcome suggestions :)
This can be done in the SDL side of things in app.h by just adding:
SDL_SetRelativeMouseMode(SDL_TRUE);
on app opening, and:
SDL_SetRelativeMouseMode(SDL_FALSE);
on closing or whenever else you want to release the mouse.
Windows you can use the ClipCursor function. I'd show more but I'm not a Windows PC.
Preventing the cursor from escaping the window is necessary for any program featuring some form of mouse look.