| 101 | } |
| 102 | |
| 103 | void Screen::SetCursorVisible(const bool value) |
| 104 | { |
| 105 | #if USE_EDITOR |
| 106 | const auto win = Editor::Managed->GetGameWindow(true); |
| 107 | #else |
| 108 | const auto win = Engine::MainWindow; |
| 109 | #endif |
| 110 | if (win && Engine::HasGameViewportFocus()) |
| 111 | win->SetCursor(value ? CursorType::Default : CursorType::Hidden); |
| 112 | else if (win) |
| 113 | win->SetCursor(CursorType::Default); |
| 114 | CursorVisible = value; |
| 115 | } |
| 116 | |
| 117 | CursorLockMode Screen::GetCursorLock() |
| 118 | { |
nothing calls this directly
no test coverage detected