I just added ::mouseWheelMove() to my knobs in my VST but it only seems to work if:
- MainComponent calls setWantsKeyboardFocus(true)
- user clicked into my Plugin window after clicking somewhere else into the host
I’ve got no problem with point 1) but I got a problem with point 2) because Cubase plugins behave differently: You don’t need to click into them for them to receive mouseWheel messages. Also, from a user-perspective point of view, I don’t see what keyboard focus has to do with mouse wheel messages: The Component under the mouse should just receive the mousewheel messages wether it’s focused (or one of its parents) or not.
How can I force the mouse wheel messages to still reach my components, even if my VST has not been clicked before? I don’t want to start using dodgy ways like grabbing the keyboard focus via a timer.
For this plugin I’m using JUCE146, and it’s on Windows. Sorry for the question if anything changed in 151.