We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5878f62 commit 06777c5Copy full SHA for 06777c5
shared/sdl/sdl_input.cpp
@@ -452,10 +452,13 @@ static void IN_ActivateMouse( void )
452
{
453
if( in_nograb->modified || !mouseActive )
454
455
- if( in_nograb->integer )
+ if( in_nograb->integer ) {
456
+ SDL_SetRelativeMouseMode( SDL_FALSE );
457
SDL_SetWindowGrab( SDL_window, SDL_FALSE );
- else
458
+ } else {
459
+ SDL_SetRelativeMouseMode( SDL_TRUE );
460
SDL_SetWindowGrab( SDL_window, SDL_TRUE );
461
+ }
462
463
in_nograb->modified = qfalse;
464
}
0 commit comments