src/events/SDL_mouse.c
changeset 8269 6e18328e25e0
parent 8149 681eb46b8ac4
child 8776 29aac8b813d9
     1.1 --- a/src/events/SDL_mouse.c	Sat Mar 01 09:50:52 2014 -0800
     1.2 +++ b/src/events/SDL_mouse.c	Sat Mar 01 09:59:06 2014 -0800
     1.3 @@ -538,7 +538,10 @@
     1.4      } else if (enabled && ShouldUseRelativeModeWarp(mouse)) {
     1.5          mouse->relative_mode_warp = SDL_TRUE;
     1.6      } else if (mouse->SetRelativeMouseMode(enabled) < 0) {
     1.7 -        return -1;
     1.8 +        if (enabled) {
     1.9 +            // Fall back to warp mode if native relative mode failed
    1.10 +            mouse->relative_mode_warp = SDL_TRUE;
    1.11 +        }
    1.12      }
    1.13      mouse->relative_mode = enabled;
    1.14