1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

[HighGUI] Updated mouse wheel delta to reside within the 'flags' variable. Updated C++ API.

This commit is contained in:
Adi Shavit
2014-01-12 09:33:08 +02:00
parent fecd5c994b
commit e45cf2173f
4 changed files with 12 additions and 5 deletions
+5
View File
@@ -216,6 +216,11 @@ void cv::setMouseCallback( const String& windowName, MouseCallback onMouse, void
cvSetMouseCallback(windowName.c_str(), onMouse, param);
}
int cv::getMouseWheelDelta( int flags )
{
return CV_GET_WHEEL_DELTA(flags);
}
int cv::startWindowThread()
{
return cvStartWindowThread();
+1 -1
View File
@@ -1392,7 +1392,7 @@ MainWindowProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
// Set the wheel delta of mouse wheel to be in the upper word of 'event'
int delta = GET_WHEEL_DELTA_WPARAM(wParam);
event |= (delta << 16);
flags |= (delta << 16);
POINT pt;
{