PistonDevelopers / input

DEPRECATED - moved into the piston repo
MIT License
7 stars 11 forks source link

Window coordinates vs drawing coordinates #47

Open bvssvni opened 9 years ago

bvssvni commented 9 years ago

The problem is that a single position is ambiguous, it does not tell you whether the input is in window coordinates, drawing coordinates or something else.

bvssvni commented 9 years ago

One solution could be to provide a rectangle or size for every mouse cursor position which told where it was relative to the rectangular surface.

bvssvni commented 9 years ago

Another solution is to add a Pointer(x, y) which is normalized to the rectangular area of the receiver of the input.