public TuioContact(TuioCursor cursor, ContactState state, System.Drawing.Size monitorSize) : base(cursor.getFingerID(), state, new Point(0, 0), 20, 20) { float x = cursor.getScreenX(monitorSize.Width); float y = cursor.getScreenY(monitorSize.Height); Position = new Point(x, y); Orientation = 0; }
public void updateTuioCursor(TuioCursor tuioCursor) { this.Dispatcher.Invoke( DispatcherPriority.Normal, (Action)(() => { BSQSim.UpdateTouchDevice((int)tuioCursor.getSessionID(), new Point(tuioCursor.getScreenX(Convert.ToInt32(DISPLAY_W)), tuioCursor.getScreenY(Convert.ToInt32(DISPLAY_H)))); })); }