mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-02-22 12:01:05 +00:00
SDL_FALSE/TRUE for SDL_SetWindowGrab
This commit is contained in:
parent
36f65fd7c5
commit
9e08cdb16a
1 changed files with 4 additions and 4 deletions
|
@ -321,7 +321,7 @@ static void IN_ActivateMouse( void )
|
||||||
if( !mouseActive )
|
if( !mouseActive )
|
||||||
{
|
{
|
||||||
SDL_SetRelativeMouseMode( SDL_TRUE );
|
SDL_SetRelativeMouseMode( SDL_TRUE );
|
||||||
SDL_SetWindowGrab( SDL_window, 1 );
|
SDL_SetWindowGrab( SDL_window, SDL_TRUE );
|
||||||
|
|
||||||
IN_GobbleMotionEvents( );
|
IN_GobbleMotionEvents( );
|
||||||
}
|
}
|
||||||
|
@ -332,9 +332,9 @@ static void IN_ActivateMouse( void )
|
||||||
if( in_nograb->modified || !mouseActive )
|
if( in_nograb->modified || !mouseActive )
|
||||||
{
|
{
|
||||||
if( in_nograb->integer )
|
if( in_nograb->integer )
|
||||||
SDL_SetWindowGrab( SDL_window, 0 );
|
SDL_SetWindowGrab( SDL_window, SDL_FALSE );
|
||||||
else
|
else
|
||||||
SDL_SetWindowGrab( SDL_window, 1 );
|
SDL_SetWindowGrab( SDL_window, SDL_TRUE );
|
||||||
|
|
||||||
in_nograb->modified = qfalse;
|
in_nograb->modified = qfalse;
|
||||||
}
|
}
|
||||||
|
@ -365,7 +365,7 @@ static void IN_DeactivateMouse( void )
|
||||||
{
|
{
|
||||||
IN_GobbleMotionEvents( );
|
IN_GobbleMotionEvents( );
|
||||||
|
|
||||||
SDL_SetWindowGrab( SDL_window, 0 );
|
SDL_SetWindowGrab( SDL_window, SDL_FALSE );
|
||||||
SDL_SetRelativeMouseMode( SDL_FALSE );
|
SDL_SetRelativeMouseMode( SDL_FALSE );
|
||||||
|
|
||||||
// Don't warp the mouse unless the cursor is within the window
|
// Don't warp the mouse unless the cursor is within the window
|
||||||
|
|
Loading…
Reference in a new issue