diff --git a/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h b/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h index 4f842479f..645d719a0 100644 --- a/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h +++ b/projects/VS2017.UWP/raylib.App.UWP/BaseApp.h @@ -194,7 +194,7 @@ protected: case SetMouseLocation: { CoreWindow ^window = CoreWindow::GetForCurrentThread(); - Point mousePosScreen = Point(msg->Float0 + window->Bounds.X, msg->Float1 + window->Bounds.Y); + Point mousePosScreen = Point(msg->Vector0.x + window->Bounds.X, msg->Vector0.y + window->Bounds.Y); window->PointerPosition = mousePosScreen; break; } diff --git a/src/core.c b/src/core.c index 3754d3871..e871d473a 100644 --- a/src/core.c +++ b/src/core.c @@ -2248,8 +2248,8 @@ void SetMousePosition(int x, int y) #if defined(PLATFORM_UWP) UWPMessage* msg = CreateUWPMessage(); msg->Type = SetMouseLocation; - msg->Float0 = mousePosition.x; - msg->Float1 = mousePosition.y; + msg->Vector0.x = mousePosition.x; + msg->Vector0.y = mousePosition.y; SendToUWP(msg); #endif } diff --git a/src/raylib.h b/src/raylib.h index 13604107a..cf1e0d5d0 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -896,7 +896,7 @@ typedef struct UWPMessage { Vector2 Vector0; //Int parameters - int Int0; + /*int Int0; int Int1; //Char parameters @@ -907,7 +907,7 @@ typedef struct UWPMessage { float Float1; //Bool parameters - bool Bool0; + bool Bool0;*/ //More parameters can be added and fed to functions } UWPMessage; @@ -918,12 +918,12 @@ inline UWPMessage* CreateUWPMessage(void) msg->Type = None; Vector2 v0 = { 0, 0 }; msg->Vector0 = v0; - msg->Int0 = 0; + /*msg->Int0 = 0; msg->Int1 = 0; msg->Char0 = 0; msg->Float0 = 0; msg->Float1 = 0; - msg->Bool0 = false; + msg->Bool0 = false;*/ return msg; }