MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / EndTrackingMouse

Method EndTrackingMouse

Source/Engine/Platform/SDL/SDLWindow.cpp:894–911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

892}
893
894void 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
913void SDLWindow::StartClippingCursor(const Rectangle& bounds)
914{

Callers

nothing calls this directly

Calls 2

SetRelativeModeMethod · 0.80
StringClass · 0.50

Tested by

no test coverage detected