This still looks like dead code - mouseLock doesn't seem to be read anywhere