Fixed input coordinates

Fixed the input coordinates for devices with resolutions other than
800x480, for example when running on a Nexus 4