Detecting Mouse wheel delta at the same time as a CTRL key
Hi,
Thanks to LBerger for his/her reply to my query last night (can't post the link).
I can't reply/send thanks for another day because of "new-user rules".
The above worked, but I've now hit a new issue. I can happily detect mouse_move and ctrl/shift/alt keys combinations, but not together with the mouse_wheel delta.
Normally, one might use something like:
if ( event == EVENT_MOUSEMOVE && flags == EVENT_FLAG_ALTKEY)
but this doesn't work with MOUSEWHEEL
if (event == cv::EVENT_MOUSEWHEEL && flags == cv::EVENT_FLAG_CTRLKEY)
I think this might be something to do with MOUSEWHEEL using the flags variable. Is there any other way to do this, as I'd like to use the MOUSEWHEELto do more than one thing depending on which key combination is pressed at the same time as rolling the mousewheel...
Best,
Jimbo