Beispiel #1
0
    void ApplyResult(bool apply = true)
    {
        Vector2 absXkb = LeastSquareMethod(absX);
        Vector2 absYkb = LeastSquareMethod(absY);
        Vector2 relXkb = LeastSquareMethod(relX);
        Vector2 relYkb = LeastSquareMethod(relY);

        all.deb.WriteLine("abs param: " + absXkb.x + " " + absXkb.y + " " + absYkb.x + " " + absYkb.y + "\trel param: " + relXkb.x + " " + relXkb.y + " " + relYkb.x + " " + relYkb.y);
        if (apply)
        {
            all.deb.WriteLine("apply");
            r.LoadAbsoluteKeyboardModel(true, absXkb.x, absXkb.y, absYkb.x, absYkb.y);
            r.LoadRelativeKeyboardModel(true, relXkb.x, relXkb.y, relYkb.x, relYkb.y);
        }
    }