Skip to content
Open
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
20 changes: 9 additions & 11 deletions TUIO/TuioClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private void processMessage(OSCMessage message)
if (command == "set")
{

long s_id = (int)args[1];
long s_id = Convert.ToInt64(args[1]);
int f_id = (int)args[2];
float xpos = (float)args[3];
float ypos = (float)args[4];
Expand Down Expand Up @@ -244,7 +244,7 @@ private void processMessage(OSCMessage message)
for (int i = 1; i < args.Count; i++)
{
// get the message content
long s_id = (int)args[i];
long s_id = Convert.ToInt64(args[i]);
newObjectList.Add(s_id);
// reduce the object list to the lost objects
if (aliveObjectList.Contains(s_id))
Expand All @@ -256,7 +256,7 @@ private void processMessage(OSCMessage message)
{
for (int i = 0; i < aliveObjectList.Count; i++)
{
long s_id = aliveObjectList[i];
long s_id = Convert.ToInt64(aliveObjectList[i]);
TuioObject removeObject = objectList[s_id];
removeObject.remove(currentTime);
frameObjects.Add(removeObject);
Expand Down Expand Up @@ -352,8 +352,7 @@ private void processMessage(OSCMessage message)

if (command == "set")
{

long s_id = (int)args[1];
long s_id = Convert.ToInt64(args[1]);
float xpos = (float)args[2];
float ypos = (float)args[3];
float xspeed = (float)args[4];
Expand Down Expand Up @@ -390,7 +389,7 @@ private void processMessage(OSCMessage message)
for (int i = 1; i < args.Count; i++)
{
// get the message content
long s_id = (int)args[i];
long s_id = Convert.ToInt64(args[i]);
newCursorList.Add(s_id);
// reduce the cursor list to the lost cursors
if (aliveCursorList.Contains(s_id))
Expand All @@ -402,7 +401,7 @@ private void processMessage(OSCMessage message)
{
for (int i = 0; i < aliveCursorList.Count; i++)
{
long s_id = aliveCursorList[i];
long s_id = Convert.ToInt64(aliveCursorList[i]);
if (!cursorList.ContainsKey(s_id)) continue;
TuioCursor removeCursor = cursorList[s_id];
removeCursor.remove(currentTime);
Expand Down Expand Up @@ -544,8 +543,7 @@ private void processMessage(OSCMessage message)

if (command == "set")
{

long s_id = (int)args[1];
long s_id = Convert.ToInt64(args[1]);
float xpos = (float)args[2];
float ypos = (float)args[3];
float angle = (float)args[4];
Expand Down Expand Up @@ -586,7 +584,7 @@ private void processMessage(OSCMessage message)
for (int i = 1; i < args.Count; i++)
{
// get the message content
long s_id = (int)args[i];
long s_id = Convert.ToInt64(args[i]);
newBlobList.Add(s_id);
// reduce the blob list to the lost blobs
if (aliveBlobList.Contains(s_id))
Expand All @@ -598,7 +596,7 @@ private void processMessage(OSCMessage message)
{
for (int i = 0; i < aliveBlobList.Count; i++)
{
long s_id = aliveBlobList[i];
long s_id = Convert.ToInt64(aliveBlobList[i]);
if (!blobList.ContainsKey(s_id)) continue;
TuioBlob removeBlob = blobList[s_id];
removeBlob.remove(currentTime);
Expand Down