Vixen
02b45cc4
csharp
public sealed class TouchDevice

A touchscreen, as up to ten fingers.

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

Fields and properties (6)

  • public const int MaximumTouches

    How many fingers are tracked, matching TouchTracker.MaximumTouches.

  • public InputDeviceKind Kind

    Which family it belongs to.

  • public int DeviceId

    The id its events arrive under, or 0 for the singleton devices.

  • public string Name

    Its name, for a settings screen.

  • public bool IsConnected

    Whether it is still there.

  • public int ActiveTouches

    How many fingers are down.

Methods (2)

  • public bool TryGetPosition(int finger, out Vector2? position)

    Where a finger is, if it is down.

  • public float ReadValue(InputControl control)

    Reads one of its controls.

Used by (2)

  • InputDeviceSetVixen.Input
  • PlatformInputTestsVixen.App.Tests