public TuioManager(Size windowSize) { server = new TuioServer(); this.windowSize = windowSize; this.cursors = new Dictionary<int, long>(); this.clickMissingTimer = new Stopwatch(); this.clickMissingTimer.Start(); ThreadPool.QueueUserWorkItem(ThreadPoolCallback); }
public App1() { graphics = new GraphicsDeviceManager(this); tuioserver = new TuioServer(); tuio_ids = new HashSet<int>(); size_x = InteractiveSurface.PrimarySurfaceDevice.Width; size_y = InteractiveSurface.PrimarySurfaceDevice.Height; }