fixed mouse lock detection; only allow mouse look and click when it is locked