示例#1
0
    void UpdateCursorLocation(GazeIO.Sample aSample)
    {
        Vector2 location = GazeToGameWindow(aSample);

        this.location = _smoother.Feed(new RawPoint(aSample.ts, location.x, location.y));
        // debug.text = $"S = {aSample.x:N0} {aSample.y:N0}; F = {this.location.x:N0} {this.location.y:N0}";

        Sample(this, new EventArgs());
    }
示例#2
0
    void UpdateCursorLocation(GazeIO.Sample aSample)
    {
        Vector2 location = GazeToGameWindow(aSample);

        pointer.anchoredPosition = location;

        _location = _smoother.Feed(new RawPoint(aSample.ts, location.x, location.y));

        Sample(this, new EventArgs());
    }