Re: CGGetLastMouseDelta - Undocumented Behavior?
Re: CGGetLastMouseDelta - Undocumented Behavior?
- Subject: Re: CGGetLastMouseDelta - Undocumented Behavior?
- From: Seth Willits <email@hidden>
- Date: Thu, 23 Oct 2003 01:05:20 -0700
On Wednesday, October 22, 2003, at 05:27 PM, Seth Willits wrote:
The only problem with using CGGetLastMouseDelta is that it doesn't
clear itself after being used. In other words, if I move the mouse (2,
-3), CGGetLastMouseDelta will supply those values until the mouse is
moved again. I don't see a way to only get (2, -3) once and then get
(0, 0) until the mouse is moved again.
What I ended up doing was getting the mousemoved event and reading
[event deltaX] and [event deltaY].
They're documented to only be the scroll wheel information, but they
are also used for mouse deltas. Is this really just by coincidence, or
is this actually supported but not in the documentation? Or did I
simply not see it in the documentation?
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software -
http://www.freaksw.com
REALbasic Guru at ResExcellence -
http://www.resexcellence.com/realbasic
Webmaster for REALbasic Game Central -
http://www.freaksw.com/rbgames
"Knowledge is limited. Imagination encircles the world."
-- Albert Einstein
------------------------------------------------------------------------
---
_______________________________________________
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.