From: Daniel A. S. <st...@ic...> - 2005-08-27 04:58:55
|
Oscar, On 26/08/2005, at 7:38, Oscar Bonilla wrote: > It seems the Mighty Mouse mousewheel is event #11. see http://lists.apple.com/archives/Carbon-dev/2005/Aug/msg00814.html for details on the new event (no docs yet afaict), it gets converted to a MouseWheel event automatically. However, we don't see these auto-converted MouseWheel events in tk because they are sent directly to the dispatcher target and not posted to the event queue (which is where we process events), the solution for this is to install a MouseWheel event handler on the dispatcher target and call TkMacOSXProcessEvent() from there (similarly to the kEventWindowExpanded handler on the app target I've recently added for <Unmap> detection) I have been planning for a while to look into reworking tkaqua event handling to explicitly register for the events we are interested in on the dispatcher target rather than handle them before dispatch from the event queue; as more and more interesting Carbon events are generated by HITooolbox internally and directly sent to the dispatcher or some other event target, rather than posted to the event queue. Cheers, Daniel -- ** Daniel A. Steffen ** "And now for something completely ** Dept. of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |