Enum MouseButton
- Namespace
- VisioForge.Core.Types
- Assembly
- VisioForge.Core.dll
Specifies constants that define which mouse button was pressed. This enumeration is used in mouse-related events to identify the specific button involved in the event.
public enum MouseButtonFields
None = 0-
No mouse button was pressed.
Left = 1-
The left mouse button.
Middle = 2-
The middle mouse button (often the scroll wheel button).
Right = 3-
The right mouse button.
XButton1 = 4-
The first X button (often a side button on gaming mice).
XButton2 = 5-
The second X button (often a side button on gaming mice).
Remarks
These values are typically used when handling mouse input, such as in VisioForge.Core.Types.IVideoView.OnMouseButtonDown or VisioForge.Core.Types.IVideoView.OnMouseButtonUp events. The Left button is the primary button for most users, the Right button typically opens context menus, and the Middle button is often the scroll wheel. XButton1 and XButton2 are extra buttons found on some gaming or advanced mice, typically used for browser navigation (back/forward) or custom actions. The enumeration provides a platform-agnostic way to handle mouse input across different operating systems and UI frameworks. Mouse button events can be used to implement custom video controls, region selection, or interactive overlays on video content.