evdev: ungrab if it is already initialized
This commit is contained in:
parent
4e36044d91
commit
ef006fb423
@ -96,6 +96,8 @@ class driver():
|
||||
def getInputDevices(self):
|
||||
if not self._initialized:
|
||||
return
|
||||
if self.iDevices != {}:
|
||||
self.releaseDevices()
|
||||
deviceList = evdev.list_devices()
|
||||
readableDevices = []
|
||||
for dev in deviceList:
|
||||
|
Loading…
Reference in New Issue
Block a user