SSL_Mouse refactor