Pivot calibration algorithm for stylus usage.