Cv2GetMouseWheelDelta Method
|
Gets the mouse-wheel motion delta, when handling mouse-wheel events cv::EVENT_MOUSEWHEEL and cv::EVENT_MOUSEHWHEEL.
For regular mice with a scroll-wheel, delta will be a multiple of 120. The value 120 corresponds to
a one notch rotation of the wheel or the threshold for action to be taken and one such action should
occur for each delta.Some high-precision mice with higher-resolution freely-rotating wheels may
generate smaller values.
For cv::EVENT_MOUSEWHEEL positive and negative values mean forward and backward scrolling,
respectively.For cv::EVENT_MOUSEHWHEEL, where available, positive and negative values mean right and
left scrolling, respectively.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic static int GetMouseWheelDelta(
MouseEvent flags
)
Public Shared Function GetMouseWheelDelta (
flags As MouseEvent
) As Integer
public:
static int GetMouseWheelDelta(
MouseEvent flags
)
static member GetMouseWheelDelta :
flags : MouseEvent -> int
OpenCvSharp.Cv2.GetMouseWheelDelta = function(flags);
Parameters
- flags
- Type: OpenCvSharpMouseEvent
The mouse callback flags parameter.
Return Value
Type:
Int32
See Also