From ebe26d92fd4bc096272f35edbfb5f3f829912382 Mon Sep 17 00:00:00 2001 From: turanszkij Date: Tue, 24 May 2016 22:15:45 +0200 Subject: [PATCH] update inputmanager --- WickedEngine/wiInputManager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/WickedEngine/wiInputManager.cpp b/WickedEngine/wiInputManager.cpp index 743c5d90c..78e2cf1ff 100644 --- a/WickedEngine/wiInputManager.cpp +++ b/WickedEngine/wiInputManager.cpp @@ -144,7 +144,11 @@ XMFLOAT4 wiInputManager::getpointer() void wiInputManager::setpointer(const XMFLOAT4& props) { #ifndef WINSTORE_SUPPORT - SetCursorPos((int)props.x, (int)props.y); + POINT p; + p.x = (LONG)props.x; + p.y = (LONG)props.y; + ClientToScreen(wiWindowRegistration::GetInstance()->GetRegisteredWindow(), &p); + SetCursorPos(p.x, p.y); #endif } void wiInputManager::hidepointer(bool value)