Is this the same scrolling information that was already available to
Cocoa apps through -NSEvent's deltaX, deltaY and deltaZ methods? or is
it different in some way? Put another way, are NSEvent's methods based
on this event, and will I get back fractional values therefrom?
You will not get back fractional values from the Carbon event,
because the Carbon event parameters are stored as integers.
The NSEvent methods read from data provided directly by CoreGraphics;
they don't read from the Carbon event fields.
The -NSEvent deltaX/Y methods return the same data as the
kEventParamMouseWheelDelta parameter in a kEventMouseWheel event,
unless your app is linked on Tiger or later. A Tiger-linked app will
potentially get back fractional values from -[NSEvent deltaX/Y/Z],
but will still get back integer values from
kEventParamMouseWheelDelta. A kEventMouseScroll event does not have a
kEventParamMouseWheelDelta parameter; instead, it has
kEventParamMouseWheelSmoothVertical/HorizontalDelta parameters.
The -NSEvent deviceDeltaX/Y methods return the same data as the
kEventParamMouseWheelSmoothVertical/HorizontalDelta parameters in the
kEventMouseScroll Carbon event.
-eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden