mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 18:05:37 +00:00
Set CarbonGLNative to correctly record mouse position.
This commit is contained in:
parent
8778d1fca9
commit
9b3f1dc8ee
|
@ -221,7 +221,7 @@ namespace OpenTK.Platform.MacOS
|
||||||
WeakReference reference = mWindows[userData];
|
WeakReference reference = mWindows[userData];
|
||||||
CarbonGLNative window = (CarbonGLNative)reference.Target;
|
CarbonGLNative window = (CarbonGLNative)reference.Target;
|
||||||
|
|
||||||
Debug.Print("Processing {0} event for {1}.", evt, window.window);
|
//Debug.Print("Processing {0} event for {1}.", evt, window.window);
|
||||||
|
|
||||||
if (window == null)
|
if (window == null)
|
||||||
{
|
{
|
||||||
|
@ -326,9 +326,10 @@ namespace OpenTK.Platform.MacOS
|
||||||
if (pt.Y < mTitlebarHeight)
|
if (pt.Y < mTitlebarHeight)
|
||||||
return OSStatus.EventNotHandled;
|
return OSStatus.EventNotHandled;
|
||||||
|
|
||||||
// TODO: Fix this
|
InputDriver.Mouse[0].Position =
|
||||||
//InputDriver.Mouse[0].X = (int)pt.X;
|
new System.Drawing.Point(
|
||||||
//InputDriver.Mouse[0].Y = (int)pt.Y - mTitlebarHeight;
|
(int)pt.X,
|
||||||
|
(int)(pt.Y - mTitlebarHeight));
|
||||||
|
|
||||||
switch(evt.MouseEventKind)
|
switch(evt.MouseEventKind)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue