News for hackers. Stuff that matters.
Re:Show HN: How many miles do you think you've scrolled today? by spuz on Tuesday May 05, 2020 @12:46PM (#23081989)
Well I wanted to specifically measure cursor distance rather than mouse distance so acceleration doesn't come into it. As long as you can sample the mouse position frequently enough, you can get an idea of how far it has travelled. All I had to do to convert pixels to physical distance was use a tape measure to get the width and height of the visible part of the screen.

There are no comments on this comment yet.