Function mouse_input_update