|
|
@@ -20,8 +20,8 @@
|
|
|
THE SOFTWARE.
|
|
|
*/
|
|
|
|
|
|
-#include "PolyGLHeaders.h"
|
|
|
#include "PolyWinCore.h"
|
|
|
+#include "PolyGLHeaders.h"
|
|
|
#include "PolyCoreInput.h"
|
|
|
#include "PolyCoreServices.h"
|
|
|
#include "PolyInputEvent.h"
|
|
|
@@ -100,6 +100,16 @@ void Win32Core::enableMouse(bool newval) {
|
|
|
ShowCursor(newval);
|
|
|
}
|
|
|
|
|
|
+void Win32Core::warpCursor(int x, int y) {
|
|
|
+ POINT point;
|
|
|
+ point.x = x;
|
|
|
+ point.y = y;
|
|
|
+ ClientToScreen(hWnd, &point);
|
|
|
+ SetCursorPos(point.x,point.y);
|
|
|
+ lastMouseX = x;
|
|
|
+ lastMouseY = y;
|
|
|
+}
|
|
|
+
|
|
|
unsigned int Win32Core::getTicks() {
|
|
|
return GetTickCount();
|
|
|
}
|