Fix mouse relative mode activation triggering mouse move events on Mac

This commit is contained in:
2025-04-21 14:07:16 +03:00
parent 26012d0b74
commit 02f446ccfd
5 changed files with 42 additions and 13 deletions

View File

@@ -273,6 +273,7 @@ bool MacPlatform::Init()
CFRelease(computerName);
}
#if !PLATFORM_SDL
// Find the maximum scale of the display to handle high-dpi displays scaling factor
{
NSArray* screenArray = [NSScreen screens];
@@ -297,6 +298,7 @@ bool MacPlatform::Init()
Input::Mouse = New<MacMouse>();
Input::Keyboard = New<MacKeyboard>();
#endif
return false;
}