Fixed issue High DPI Issue

This commit is contained in:
Richard
2021-01-23 23:39:24 +11:00
parent 049450e31b
commit 71110c9f29

View File

@@ -676,7 +676,7 @@ void InputService::Update()
const auto lockMode = Screen::GetCursorLock();
if (lockMode == CursorLockMode::Locked)
{
Input::SetMousePosition(Screen::GetSize() * 0.5f);
Input::SetMousePosition(Screen::GetSize() * 0.5f * Platform::GetDpiScale());
}
// Send events for the active actions (send events only in play mode)