Skip to content
Permalink
Browse files

[Shared] Allow non-raw mouse input via in_mouse 2

  • Loading branch information...
Razish committed Jan 19, 2018
1 parent 4cb9711 commit 528488e93c1bcb1ca18114c008c33ba3ee9d78c6
Showing with 8 additions and 0 deletions.
  1. +8 −0 shared/sdl/sdl_input.cpp
@@ -615,6 +615,14 @@ void IN_Init( void *windowData )
SDL_StartTextInput( );

mouseAvailable = (qboolean)( in_mouse->value != 0 );
if ( in_mouse->integer == 2 ) {
Com_DPrintf( "Not using raw mouse input\n" );
SDL_SetHint( "SDL_MOUSE_RELATIVE_MODE_WARP", "1" );
}
else {
Com_DPrintf( "Using raw mouse input\n" );
SDL_SetHint( "SDL_MOUSE_RELATIVE_MODE_WARP", "0" );
}
IN_DeactivateMouse( );

int appState = SDL_GetWindowFlags( SDL_window );

0 comments on commit 528488e

Please sign in to comment.
You can’t perform that action at this time.