Draw a line code not working

Could the different behaviours in the mouse coordinates “precision” be related to differences in hardware/os?
Maybe some systems might sync the mouse to the display refresh rate while others simply dispatch them as they come. Or maybe some pc/mac have specialized circuita to control the mouse while others rely on the os…
Just a thought…

The difference in behaviors is very likely going to vary between hardware and OS. We are dependent on the values returned by the OS.

Rob

@Rob, if you are using a Mac, just drop my code into main.lua and see if you get continual (on Windows) or broken lines (on Mac)?