internal TouchCalibrationPoints() { this._calibrationData = new TouchCalibrationData(); int calibrationPointCount = 0; Touch.ActiveTouchPanel.GetCalibrationPointCount(ref calibrationPointCount); this._calibrationData.screenX = new short[calibrationPointCount]; this._calibrationData.screenY = new short[calibrationPointCount]; this._calibrationData.touchX = new short[calibrationPointCount]; this._calibrationData.touchY = new short[calibrationPointCount]; // Get the points for calibration. for (int index = 0; index < calibrationPointCount; index++) { int x = 0; int y = 0; Touch.ActiveTouchPanel.GetCalibrationPoint(index, ref x, ref y); this._calibrationData.screenX[index] = (short)x; this._calibrationData.screenY[index] = (short)y; } }
internal TouchCalibrationPoints(TouchCalibrationData touchCalibrationData) { this._calibrationData = touchCalibrationData; }