Update evdevDriver.py
This commit is contained in:
parent
882889ee1c
commit
d084a11145
@ -284,14 +284,16 @@ class driver(inputDriver):
|
|||||||
return True
|
return True
|
||||||
ok = True
|
ok = True
|
||||||
for fd in self.iDevices:
|
for fd in self.iDevices:
|
||||||
ok = ok and self.grabDevice(fd)
|
if not self.gDevices[fd]:
|
||||||
|
ok = ok and self.grabDevice(fd)
|
||||||
return ok
|
return ok
|
||||||
def ungrabAllDevices(self):
|
def ungrabAllDevices(self):
|
||||||
if not self._initialized:
|
if not self._initialized:
|
||||||
return True
|
return True
|
||||||
ok = True
|
ok = True
|
||||||
for fd in self.iDevices:
|
for fd in self.iDevices:
|
||||||
ok = ok and self.ungrabDevice(fd)
|
if self.gDevices[fd]:
|
||||||
|
ok = ok and self.ungrabDevice(fd)
|
||||||
return ok
|
return ok
|
||||||
def createUInputDev(self, fd):
|
def createUInputDev(self, fd):
|
||||||
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
|
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
|
||||||
|
Loading…
Reference in New Issue
Block a user