def close(self): # close InputDevice object self.device.close() # destroy the uinput device if self.fd and self.fd > 0: _uinput.close(self.fd)
def close(self): # Close the associated InputDevice, if it was previously opened. if self.device is not None: self.device.close() # Destroy the uinput device. if self.fd > -1: _uinput.close(self.fd) self.fd = -1
def close(self): # close the associated InputDevice, if it was previously opened if self.device is not None: self.device.close() # destroy the uinput device if self.fd > -1: _uinput.close(self.fd) self.fd = -1