mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-28 21:26:54 +00:00
[Mac] Fixed cursor coords when CursorVisible=false
This commit is contained in:
parent
89fc36bde1
commit
3824f55f18
|
@ -507,7 +507,7 @@ namespace OpenTK.Platform.MacOS
|
|||
|
||||
p = new Point(
|
||||
MathHelper.Clamp((int)Math.Round(p.X + dx), 0, Width),
|
||||
MathHelper.Clamp((int)Math.Round(p.Y - dy), 0, Height));
|
||||
MathHelper.Clamp((int)Math.Round(p.Y + dy), 0, Height));
|
||||
}
|
||||
|
||||
InputDriver.Mouse[0].Position = p;
|
||||
|
|
Loading…
Reference in a new issue