Way to track mouse when sketch is not active window?

edited November 2013 in How To...

Hello, I am trying to make a drawing app that draws lines when the mouse is dragged across the screen. I am then wanting to export what is drawn, to a VJ application that will be projecting over the active window (so the VJ application's output will be what is visible and the processing window will be hidden).

Is there a way to make mouseX and mouseY be tracked even if the window is not active?

Relatedly: Is there a simpler way to this, a way other than hiding the Processing window under my VJ application output window?

Also, is there a way to track mouse position outside of the drawing window? (So that the draw window could be on one monitor, and the mouse position tracked on a second?) Thanks.

Answers

Sign In or Register to comment.