Skip to content

MoveCursor should affect CursorPosition immediately #16

@BoilingTeapot

Description

@BoilingTeapot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions