Input mouse example
Mouse drawing and reading, utility functions