예제 #1
0
        public ActionResult SwitchMouseCalibration(bool start)
        {
            if (start)
            {
                //Démarrage de la calibration
                Logs.AddLog("info", "Starting mouse calibration ...");
                Thread calibThread = new Thread(MyMouse.Calibrate);
                calibThread.Start();
            }
            else
            {
                //Arrêt de la calibration
                Logs.AddLog("info", "Stop mouse calibration");
                MyMouse.CalibrationStop();
            }

            return(Json(new { Success = true }, JsonRequestBehavior.AllowGet));
        }