polling for mouse input