1 | initial version |
You can't do like this because there is another value in flags variable (I cannot found doc about it) . you have to use binary operator :
if (event ==cv::EVENT_MOUSEWHEEL && (flags & cv::EVENT_FLAG_CTRLKEY))
2 | No.2 Revision |
You can't do like this because there is another value in flags variable (I cannot found doc about it) . you have to use binary operator :
if (event ==cv::EVENT_MOUSEWHEEL && (flags & cv::EVENT_FLAG_CTRLKEY))
flag is used to store mouse wheel delta too
you can do like this too :
if (event ==cv::EVENT_MOUSEWHEEL && (flags&0xFFFF==cv::EVENT_FLAG_CTRLKEY))