update inputmanager

This commit is contained in:
turanszkij
2016-05-24 22:15:45 +02:00
parent 15d97bf5bd
commit ebe26d92fd
+5 -1
View File
@@ -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)