Helper class to keep track of all touches according to their id's.
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Input TouchBase
DeltaEngine.Input.Windows TouchCollection
Namespace: DeltaEngine.Input.Windows
Assembly: DeltaEngine.Input.Windows (in DeltaEngine.Input.Windows.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The TouchCollection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | TouchCollection | Initializes a new instance of the TouchCollection class |
Methods
Name | Description | |
---|---|---|
![]() | FindIndexByIdOrGetFreeIndex | (Inherited from TouchBase.) |
Fields
Name | Description | |
---|---|---|
![]() | ids | (Inherited from TouchBase.) |
![]() | locations | (Inherited from TouchBase.) |
![]() | states | (Inherited from TouchBase.) |
Remarks
Examples
[Test, CloseAfterFirstFrame] public void FindIndexByIdOrGetFreeIndex() { Assert.AreEqual(0, touchCollection.FindIndexByIdOrGetFreeIndex(478)); }
[Test, CloseAfterFirstFrame] public void FindIndexByIdWithExistingId() { emptyTouchCollection.ids[5] = 5893; Assert.AreEqual(5, emptyTouchCollection.FindIndexByIdOrGetFreeIndex(5893)); }
[Test, CloseAfterFirstFrame] public void FindFreeIndex() { Assert.AreEqual(0, touchCollection.FindIndexByIdOrGetFreeIndex(456)); }
See Also