| 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: 1.0.0
Syntax public static int GetMouseWheelDelta(
MouseEventTypes flags
)
Public Shared Function GetMouseWheelDelta (
flags As MouseEventTypes
) As Integer
public:
static int GetMouseWheelDelta(
MouseEventTypes flags
)
static member GetMouseWheelDelta :
flags : MouseEventTypes -> int
Parameters
- flags
- Type: OpenCvSharpMouseEventTypes
The mouse callback flags parameter.
Return Value
Type:
Int32[Missing <returns> documentation for "M:OpenCvSharp.Cv2.GetMouseWheelDelta(OpenCvSharp.MouseEventTypes)"]
See Also