def close(self): if self._ready: self.daemon.remove_controller(self) self._ready = False self.daemon.remove_mainloop(self._timer) USBDevice.close(self)
def close(self): # Called when dongle is removed for c in self._controllers.values(): self.daemon.remove_controller(c) self._controllers = {} USBDevice.close(self)
def close(self): # Called when pad is disconnected USBDevice.close(self) if self._ready: self.daemon.remove_controller(self) self._ready = False
def close(self): if self._ready: self.daemon.remove_controller(self) self._ready = False USBDevice.close(self)