Skip to content

Commit 35ab26e

Browse files
committed
Remove half-baked virtual pointers API
1 parent 10fc9e3 commit 35ab26e

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

documentation/proposals/Proposal - Multi-Backend Input.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -517,24 +517,12 @@ an `IPointerTarget` is added or removed to/from `IPointer.Targets`. `IsAdded` sh
517517
`HandleGripChanged` must be called when `PointerState.GripPressure` changes.
518518

519519
These device interfaces and related APIs are designed to mirror physical hardware that the user uses to point at a
520-
target. However, there are many cases where applications would work better with an abstraction that creates "virtual
521-
pointers" for each point, rather that the points being spread across many logical devices. For this we propose the
522-
following addendum to the `Pointers` class:
520+
target.
523521

524-
```cs
525-
public partial class Pointers
526-
{
527-
public IReadOnlyList<ContextPoint> Points { get; }
528-
}
529-
530-
public readonly record struct ContextPoint(IPointer Device, TargetPoint Point, ButtonReadOnlyList<PointerButton> Buttons, float GripPressure)
531-
{
532-
public int Id { get; }
533-
}
534-
```
535-
536-
`Id` shall be an identifier that mixes `Point.Id` and `Device.Id` in a way that ensures the identifier is unique across
537-
the whole context.
522+
**FUTURE IMPROVEMENT:** There are many cases where applications would work better with an abstraction that creates
523+
"virtual pointers" for each point, rather that the points being spread across many logical devices. These can be added
524+
as non-breaking extensions to the `Pointers` class in the future, as the input context is intended to be the aggregator
525+
of device inputs.
538526

539527
**FUTURE IMPROVEMENT:** The `Pointers` class is also expected to be the site of gesture recognition when proposed in the
540528
future.

0 commit comments

Comments
 (0)