Vixen
02b45cc4
csharp
public enum MouseButton

A mouse button, named by role rather than by side.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Primary is the button under the index finger — which is the physical left button for most people and the right one for a left-handed pointer configuration. The OS has already applied that swap by the time an event reaches us, so binding to Primary respects the user's setting and binding to "left" silently does not.

Fields and properties (6)

  • None

    No button — a move, or a wheel event.

  • Primary

    The main button: select, click, drag.

  • Secondary

    The context-menu button.

  • Middle

    The wheel pressed in.

  • Extra1

    The first thumb button, conventionally "back".

  • Extra2

    The second thumb button, conventionally "forward".

Used by (11)

  • VirtualGeometryGameVirtualGeometry
  • DesktopInputSourceVixen.Platform.Desktop
  • HeadlessInputSourceVixen.Platform.Headless
  • HeadlessLifecycleTestsVixen.Platform.Headless.Tests
  • IInputSourceVixen.Platform
  • InputKeyTestsVixen.Input.Tests
  • PlatformEventVixen.Platform
  • PlatformInputVixen.Platform.Ui
  • SdlTranslationVixen.Platform.Desktop
  • SdlTranslationTestsVixen.Platform.Desktop.Tests
  • PlatformInputTestsVixen.App.Tests