src/video/x11/SDL_x11mouse.c
changeset 80 8806bc1eb80e
parent 79 ffadd05de74d
child 252 e8157fcb3114
equal deleted inserted replaced
79:ffadd05de74d 80:8806bc1eb80e
   234 
   234 
   235 	/* Allow the user to override the relative mouse mode.
   235 	/* Allow the user to override the relative mouse mode.
   236 	   They almost never want to do this, as it seriously affects
   236 	   They almost never want to do this, as it seriously affects
   237 	   applications that rely on continuous relative mouse motion.
   237 	   applications that rely on continuous relative mouse motion.
   238 	*/
   238 	*/
   239 	env_override = getenv("SDL_MOUSE_NORELATIVE");
   239 	env_override = getenv("SDL_MOUSE_RELATIVE");
   240 	if ( env_override ) {
   240 	if ( env_override ) {
   241 		enable_relative = atoi(env_override);
   241 		enable_relative = atoi(env_override);
   242 	}
   242 	}
   243 
   243 
   244 	/* If the mouse is hidden and input is grabbed, we use relative mode */
   244 	/* If the mouse is hidden and input is grabbed, we use relative mode */