Code: Select all
centerMouse();
trace(intToStr(App.MousePosition.X * 10000) + "," + intToStr(App.MousePosition.Y * 10000));
Code: Select all
trace(intToStr(App.MousePosition.X * 10000) + "," + intToStr(App.MousePosition.Y * 10000));
centerMouse();
This happens only when application is running in the ZGE's application preview window and values vary depending on size or aspect ration of the viewport. When running from .exe, centerMouse() works correctly.
I observed it on Toyland Shooter project which is quite complex, but unfortunately, I was not able to reproduce it on a simple project to show you this strange behavior.