Skip to content

How to use dpg.get_mouse_pos() to get current global (x,y) position? #1420

Answered by hoffstadt
CodeCox asked this question in Support
Discussion options

You must be logged in to vote

Hi, by default the mouse position is local to an imgui window. You need to set it false, i.e.:

print(dpg.get_mouse_pos(local=False))

Replies: 1 comment

Comment options

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