How i can calibrate Leonardo mouse.move()

thanks for your reply. I'm using the same method right now, but I was looking for a definitive method because I was wondering if it would work properly for the people I will give the software to.