code: def set_controller_state(self, name, value):
          # type: (str, bool) -> None
          
          with self._lock:
              self._controllers_state[name] = value
              self.__safe_handlers_callback("on_controller_change", name, value)
docs: Sets the state of the controller with the given name
  
          :param name: The name of the controller
          :param value: The new value of the controller