# HG changeset patch # User Sam Lantinga # Date 993322289 0 # Node ID e9582f471c021616bff3b662a62b34375f62c4de # Parent 1e7e61b9b0f97dd90b9abbc8707f900f85cc1a08 Added the environment variable SDL_MOUSE_NORELATIVE to completely disable relative mouse motion if the application desires it. UNDOCUMENTED!! diff -r 1e7e61b9b0f9 -r e9582f471c02 src/video/x11/SDL_x11mouse.c --- a/src/video/x11/SDL_x11mouse.c Tue Jun 19 21:07:12 2001 +0000 +++ b/src/video/x11/SDL_x11mouse.c Sat Jun 23 18:51:29 2001 +0000 @@ -232,7 +232,8 @@ /* If the mouse is hidden and input is grabbed, we use relative mode */ if ( !(SDL_cursorstate & CURSOR_VISIBLE) && (this->input_grab != SDL_GRAB_OFF) && - (SDL_GetAppState() & SDL_APPACTIVE) ) { + (SDL_GetAppState() & SDL_APPACTIVE) && + !getenv("SDL_MOUSE_NORELATIVE") ) { if ( ! mouse_relative ) { X11_EnableDGAMouse(this); if ( ! (using_dga & DGA_MOUSE) ) {