Vixen
dd8b0a81
csharp
public enum PointerType

What kind of device a pointer event came from.

Read the guide page for this →

Remarks

⚠ A fact on the event rather than a convention about its id range. Before this existed, a finger and a mouse arrived as the same shape and were told apart only by which range PlatformInput had allocated their PointerId from — a rule written down in one file's comments and knowable nowhere else.

⚠ Unknown is zero, and that is deliberate rather than tidy. The value exists to be trusted at an arbitration point: touch-action governs touch and nothing else, so a reader that applied it to a mouse would stop a map responding to a mouse drag, which no browser does. A default of Mouse would make every producer that has not been updated claim to be a mouse, which is exactly the failure a default cannot be allowed to have — an unset field must read as "nobody said", not as an answer.

Fields and properties (4)

  • Unknown

    Nobody said — an event from a producer that does not know or does not care.

  • Mouse

    A mouse, a trackpad, or anything else that moves a cursor.

  • Touch

    A finger.

  • Pen

    A stylus.

Used by (11)

  • ControlFixtureVixen.Ui.Controls.Tests
  • DragEventVixen.Ui
  • LongPressEventVixen.Ui
  • PlatformInputVixen.Platform.Ui
  • PointerEventVixen.Ui
  • PressVixen.Ui
  • ScrollMomentumTestsVixen.Ui.Controls.Tests
  • ScrollViewVixen.Ui.Controls
  • TapEventVixen.Ui
  • TouchRoutingTestsVixen.Platform.Ui.Tests
  • UiTestVixen.Ui.Testing