public static void PrepareCalibrationPoints()
        {
            calibrationPoints = new CalibrationPoints();

            int pointCount = 0;
            Touch.ActiveTouchPanel.GetCalibrationPointCount(ref pointCount);

            calibrationPoints.ScreenX = new short[pointCount];
            calibrationPoints.ScreenY = new short[pointCount];
            calibrationPoints.TouchX = new short[pointCount];
            calibrationPoints.TouchY = new short[pointCount];

            // Get the points for calibration.
            for (int i = 0; i < pointCount; i++)
            {
                int x = 0;
                int y = 0;
                Touch.ActiveTouchPanel.GetCalibrationPoint(i, ref x, ref y);
                calibrationPoints.ScreenX[i] = (short)x;
                calibrationPoints.ScreenY[i] = (short)y;
            }
        }
Example #2
0
        public static void PrepareCalibrationPoints()
        {
            calibrationPoints = new CalibrationPoints();

            int pointCount = 0;

            Touch.ActiveTouchPanel.GetCalibrationPointCount(ref pointCount);

            calibrationPoints.ScreenX = new short[pointCount];
            calibrationPoints.ScreenY = new short[pointCount];
            calibrationPoints.TouchX  = new short[pointCount];
            calibrationPoints.TouchY  = new short[pointCount];

            // Get the points for calibration.
            for (int i = 0; i < pointCount; i++)
            {
                int x = 0;
                int y = 0;
                Touch.ActiveTouchPanel.GetCalibrationPoint(i, ref x, ref y);
                calibrationPoints.ScreenX[i] = (short)x;
                calibrationPoints.ScreenY[i] = (short)y;
            }
        }
Example #3
0
 private static void LoadCalibrationPoints()
 {
     ewrCalibrationPoints          = ExtendedWeakReference.RecoverOrCreate(typeof(CalibrationManager), 0, ExtendedWeakReference.c_SurvivePowerdown | ExtendedWeakReference.c_SurviveBoot);
     ewrCalibrationPoints.Priority = (int)ExtendedWeakReference.PriorityLevel.System;
     calibrationPoints             = (CalibrationPoints)ewrCalibrationPoints.Target;
 }
 private static void LoadCalibrationPoints()
 {
     ewrCalibrationPoints = ExtendedWeakReference.RecoverOrCreate(typeof(CalibrationManager), 0, ExtendedWeakReference.c_SurvivePowerdown | ExtendedWeakReference.c_SurviveBoot);
     ewrCalibrationPoints.Priority = (int)ExtendedWeakReference.PriorityLevel.System;
     calibrationPoints = (CalibrationPoints)ewrCalibrationPoints.Target;
 }