Updated for Mouse Input and Different Screens

A simple way to detect mouse, not very efficient.