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.
2 parents 037740d + 06777c5 commit 1862c42Copy full SHA for 1862c42
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