Correct parameters verification for on_mouse_pressed/released