code: def is_clicked(self, MouseStateType):
          
          return self.previous_mouse_state.query_state(MouseStateType) and (
          not self.current_mouse_state.query_state(MouseStateType))
docs: Did the user depress and release the button to signify a click?
          MouseStateType is the button to query. Values found under StateTypes.py