What are the z-coordinates in Cocoa mouse events for?
Interestingly, I haven't found an answer to this seemingly trivial question - Cocoas z-coordinate mouse events - what are they for?
a source to share
The function is described absoluteZ
:
For the coordinate to be valid, the receiver must represent an event generated by the tablet pointing device (0 is returned otherwise). The z coordinate does not represent pressure. It records the depth coordinate returned by some wheeled tablet devices; 0 is returned if the device is anything other than this. This method is valid only for mouse events with subtype NSTabletPointEventSubtype and for events of type NSTabletPoint.
a source to share
Tablet compatible.
Google is your friend. http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSEvent_Class/Reference/Reference.html
a source to share