Update mouse detection