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)