Update evdevDriver.py
This commit is contained in:
parent
882889ee1c
commit
d084a11145
@ -284,6 +284,7 @@ class driver(inputDriver):
|
|||||||
return True
|
return True
|
||||||
ok = True
|
ok = True
|
||||||
for fd in self.iDevices:
|
for fd in self.iDevices:
|
||||||
|
if not self.gDevices[fd]:
|
||||||
ok = ok and self.grabDevice(fd)
|
ok = ok and self.grabDevice(fd)
|
||||||
return ok
|
return ok
|
||||||
def ungrabAllDevices(self):
|
def ungrabAllDevices(self):
|
||||||
@ -291,6 +292,7 @@ class driver(inputDriver):
|
|||||||
return True
|
return True
|
||||||
ok = True
|
ok = True
|
||||||
for fd in self.iDevices:
|
for fd in self.iDevices:
|
||||||
|
if self.gDevices[fd]:
|
||||||
ok = ok and self.ungrabDevice(fd)
|
ok = ok and self.ungrabDevice(fd)
|
||||||
return ok
|
return ok
|
||||||
def createUInputDev(self, fd):
|
def createUInputDev(self, fd):
|
||||||
|
Loading…
Reference in New Issue
Block a user