Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MoveCursor should affect CursorPosition immediately #16

Open
BoilingTeapot opened this issue Oct 6, 2022 · 0 comments
Open

MoveCursor should affect CursorPosition immediately #16

BoilingTeapot opened this issue Oct 6, 2022 · 0 comments

Comments

@BoilingTeapot
Copy link
Contributor

The following code behaves incorrectly in N#:

MoveCursor(100, 100);
Wait(100);
MoveCursor(200, 200);
CursorPosition($x, $y); // returns (100, 100) in N# and (200, 200) in N2

MoveCursor changes cursor position by calling _ctx.Window.SetMousePosition, but CursorPosition reads _ctx.InputContext.MousePosition, which is only updated once per frame.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant