public static void updateTuioCursor(TuioCursor c)
        {
            int id = c.getCursorID();

            if (!deviceDictionary.Keys.Contains(id))
            {
                addTuioCursor(c);
            }
            TUIOTouchDevice device = deviceDictionary[id];

            if (device != null)
            {
                device.OriginalPosition = new Point(c.getX(), c.getY());
                device.ReportMove();
            }
        }
        public static void addTuioCursor(TuioCursor c)
        {
            TUIOTouchDevice device = null;

            if (!deviceDictionary.Keys.Contains(c.getCursorID()))
            {
                device = new TUIOTouchDevice(c.getCursorID());
                deviceDictionary.Add(c.getCursorID(), device);
            }

            if (device != null)
            {
                device.OriginalPosition = new Point(c.getX(), c.getY());

                device.SetActiveSource(PresentationSource.FromVisual(_root));
                device.Activate();
                device.ReportDown();
            }
        }