Skip to content

How to lock the cursor position on the screen? #2786

Answered by bogdan-ov
bogdan-ov asked this question in Q&A
Discussion options

You must be logged in to vote

Well... I found the solution by myself

// Put it somewhere in `update` function
public function update(elapsed:Float) {
    FlxG.stage.application.window.warpMouse(0, 0);
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bogdan-ov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants