Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Runtime/InputSources/Tuio11Input.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ private void AddObject(Tuio11Object tuio11Object)
};
var objectPointer = AddObject(screenPosition);
UpdateObjectProperties(objectPointer, tuio11Object);
ObjectToInternalId.Add(tuio11Object.SymbolId, objectPointer);
ObjectToInternalId.Add(tuio11Object.SessionId, objectPointer);
}
}

private void UpdateObject(Tuio11Object tuio11Object)
{
lock (this)
{
if (!ObjectToInternalId.TryGetValue(tuio11Object.SymbolId, out var objectPointer)) return;
if (!ObjectToInternalId.TryGetValue(tuio11Object.SessionId, out var objectPointer)) return;
var screenPosition = new Vector2
{
x = tuio11Object.Position.X * ScreenWidth,
Expand All @@ -93,8 +93,8 @@ private void RemoveObject(Tuio11Object tuio11Object)
{
lock (this)
{
if (!ObjectToInternalId.TryGetValue(tuio11Object.SymbolId, out var objectPointer)) return;
ObjectToInternalId.Remove(tuio11Object.SymbolId);
if (!ObjectToInternalId.TryGetValue(tuio11Object.SessionId, out var objectPointer)) return;
ObjectToInternalId.Remove(tuio11Object.SessionId);
ReleasePointer(objectPointer);
RemovePointer(objectPointer);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
}
],
"dependencies": {
"com.unity.textmeshpro": ""
"com.unity.textmeshpro": "3.0.0"
}
}