Re: How to get mouse moved events?
Re: How to get mouse moved events?
- Subject: Re: How to get mouse moved events?
- From: Public Look <email@hidden>
- Date: Sun, 25 Jan 2004 02:36:24 -0500
Thanks for the feedback. I remember a "rulers" application from way
back in NeXTstep. I think it was probably tied into the Window Server
directly back then. The Window Server was partly/mostly a Postscript
application and much of its source was available...
OK. I am not a graphic designer, but my interest is piqued. How does
a graphic designer use rulers, etc. Does it matter if the document
being edited is scaled/zoomed, translated, or rotated ? Don't most
graphic design related applications have built in rulers ? I suppose
being able to position translucent rulers anywhere on screen could be
handy, but what do designers use for reference points to position
rulers? What happens when the window of the document being edited is
moved relative to the rulers or the document is scrolled ?
Don't take up list bandwidth if this is too off topic. This thread
started as a technical question, and now I am twisting it into more of
a why then a how question...
So, regarding the technical question: Is the answer to use
CGRemoteOperation.h ?
http://developer.apple.com/documentation/GraphicsImaging/Reference/
Quartz_Services_Ref/index.html
void CGGetLastMouseDelta (CGMouseDelta * deltaX, CGMouseDelta * deltaY);
CGDisplayMoveCursorToPoint(CGDirectDisplayID display, CGPoint point);
Presumably by moving the cursor to a known location and then tracking
the deltas, an application always knows where the cursor is. Moving
the cursor initially can be avoided by finding the initial mouse
position some other way like through normal Cocoa event handling for
the front most application.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.