Hot Door CORE Forum

Full Version: Mouse wheel scroll
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello. It is me again. As far as I know, currently it is impossible to catch mouse wheel events with HDI API(am I correct?). Is it possible to implement functional that will allow library user to handle mouse wheel events? Thank you.
I imagine it is possible to capture the mouse wheel events in a similar way to how we capture the mouse button events. I will add this to the list of requested features.
This is great news, thank you! Is there any info on when this feature might be implemented?
Maybe approximately? This info could help me decide if I should implement platform-oriented listener of mouse wheen events or wait for update.
Unfortunately we will not be able to implement this feature anytime soon, so you should look into the platform code yourself if you need it now. We have a pending dot release of CORE that has loads of new features that needs to be finished, as well as other products that take precedence at the moment.

Obviously I haven't written the code yet, but it's very likely you'll want to add a hook on Windows that monitors for WH_MOUSE_LL events, and you'll want to create an IOHIDManager on Mac with IOKit to receive events for the kHIDPage_GenericDesktop/kHIDUsage_GD_Mouse page/usage pair. If you don't use low-level events like these then it's probable that Illustrator will consume the event and you'll never receive it at the plug-in level (this is what happens with other events like keystrokes).