Some more SDL1.2 -> SDL2 work. Mouse input doesn't suck now!

This commit is contained in:
Ryan C. Gordon
2024-04-30 01:08:36 -04:00
parent 001a533399
commit f739edff3d
2 changed files with 13 additions and 17 deletions

View File

@@ -715,10 +715,7 @@ int opengl_Setup(oeApplication *app, int *width, int *height) {
ddio_mouseGrabbed = true;
}
if (ddio_mouseGrabbed) {
SDL_ShowCursor( 0 );
SDL_SetWindowGrab(GSDLWindow, SDL_TRUE);
}
SDL_SetRelativeMouseMode(ddio_mouseGrabbed ? SDL_TRUE : SDL_FALSE);
// rcg09182000 gamma fun.
// rcg01112000 --nogamma fun.