src/video/gem/SDL_gemmouse.c
changeset 1267 fdc7ef6ecab4
parent 769 b8d311d90021
child 1312 c9b51268668f
equal deleted inserted replaced
1266:a7bea6db3c3e 1267:fdc7ef6ecab4
   163 #endif
   163 #endif
   164 
   164 
   165 void GEM_CheckMouseMode(_THIS)
   165 void GEM_CheckMouseMode(_THIS)
   166 {
   166 {
   167 	/* If the mouse is hidden and input is grabbed, we use relative mode */
   167 	/* If the mouse is hidden and input is grabbed, we use relative mode */
   168 	if ( !(SDL_cursorstate & CURSOR_VISIBLE) &&
   168 	if ( (!(SDL_cursorstate & CURSOR_VISIBLE)) &&
   169 		(this->input_grab != SDL_GRAB_OFF) &&
   169 		/*(this->input_grab != SDL_GRAB_OFF) && */ /* Damn GEM can not grab */
   170              (SDL_GetAppState() & SDL_APPACTIVE) ) {
   170              (SDL_GetAppState() & SDL_APPACTIVE) ) {
   171 		GEM_mouse_relative = SDL_TRUE;
   171 		GEM_mouse_relative = SDL_TRUE;
   172 	} else {
   172 	} else {
   173 		GEM_mouse_relative = SDL_FALSE;
   173 		GEM_mouse_relative = SDL_FALSE;
   174 	}
   174 	}