trunk/src/osd/sdl/window.c
| r26870 | r26871 | |
| 615 | 615 | { |
| 616 | 616 | //FIXME: SDL1.3: really broken: the whole SDL code |
| 617 | 617 | // will only work correct with relative mouse movements ... |
| 618 | | //SDL_SetRelativeMouseMode |
| 619 | 618 | if (!window->fullscreen && !sdlinput_should_hide_mouse(machine)) |
| 620 | 619 | { |
| 621 | 620 | SDL_ShowCursor(SDL_ENABLE); |
| 622 | 621 | if (SDL_GetWindowGrab(window->sdl_window )) |
| 623 | 622 | SDL_SetWindowGrab(window->sdl_window, SDL_FALSE); |
| 623 | SDL_SetRelativeMouseMode(SDL_FALSE); |
| 624 | 624 | } |
| 625 | 625 | else |
| 626 | 626 | { |
| 627 | 627 | SDL_ShowCursor(SDL_DISABLE); |
| 628 | 628 | if (!SDL_GetWindowGrab(window->sdl_window)) |
| 629 | 629 | SDL_SetWindowGrab(window->sdl_window, SDL_TRUE); |
| 630 | SDL_SetRelativeMouseMode(SDL_TRUE); |
| 630 | 631 | } |
| 631 | 632 | SDL_SetCursor(NULL); // Force an update in case the underlying driver has changed visibility |
| 632 | 633 | } |