It's simple, you make so that clicking places doesn't move you if you have this option enabled from the preferences menu. Everything other stuff the mouse can do is left untouched.