cocoa - How to store (and use) the current mouse position? -


What is the best way to store an existing mouse state (system-wide) and after that (later) mouse Put the stored point on it?

I get the position, and I can move the mouse from one, but they each use a different coordinate system (I believe y = 0 is the most for NSEvent Up and down for a CGEvent).

I'm worried about the capture of the screen height and the robustness of using it to convert between two - or is this the best way?

Post-text "itemprop =" text ">

Yes, using the height of the main screen is the standard way of flipping screen coordinates.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -