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):
|
def getInputDevices(self):
|
||||||
if not self._initialized:
|
if not self._initialized:
|
||||||
return
|
return
|
||||||
|
if self.iDevices != {}:
|
||||||
|
self.releaseDevices()
|
||||||
deviceList = evdev.list_devices()
|
deviceList = evdev.list_devices()
|
||||||
readableDevices = []
|
readableDevices = []
|
||||||
for dev in deviceList:
|
for dev in deviceList:
|
||||||
|
Loading…
Reference in New Issue
Block a user