| 892 | } |
| 893 | |
| 894 | void SDLWindow::EndTrackingMouse() |
| 895 | { |
| 896 | if (!_isTrackingMouse) |
| 897 | return; |
| 898 | |
| 899 | _isTrackingMouse = false; |
| 900 | _isHorizontalFlippingMouse = false; |
| 901 | _isVerticalFlippingMouse = false; |
| 902 | |
| 903 | if (!SDL_CaptureMouse(false)) |
| 904 | { |
| 905 | if (!SDLPlatform::UsesWayland()) // Suppress "That operation is not supported" errors |
| 906 | LOG(Warning, "SDL_CaptureMouse: {0}", String(SDL_GetError())); |
| 907 | } |
| 908 | |
| 909 | Input::Mouse->SetRelativeMode(false, this); |
| 910 | _restoreRelativeMode = false; |
| 911 | } |
| 912 | |
| 913 | void SDLWindow::StartClippingCursor(const Rectangle& bounds) |
| 914 | { |
nothing calls this directly
no test coverage detected