Update evdevDriver.py
This commit is contained in:
parent
05b9a72b38
commit
8ffca527ab
@ -185,9 +185,9 @@ class driver(inputDriver):
|
|||||||
except:
|
except:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
if currDevice.name.upper() in ['','SPEAKUP','PY-EVDEV-UINPUT']:
|
if currDevice.name.upper() in ['','SPEAKUP','FENRIR-UINPUT']:
|
||||||
continue
|
continue
|
||||||
if currDevice.phys.upper() in ['','SPEAKUP','PY-EVDEV-UINPUT']:
|
if currDevice.phys.upper() in ['','SPEAKUP']:
|
||||||
continue
|
continue
|
||||||
if 'BRLTTY' in currDevice.name.upper():
|
if 'BRLTTY' in currDevice.name.upper():
|
||||||
continue
|
continue
|
||||||
@ -301,7 +301,7 @@ class driver(inputDriver):
|
|||||||
if self.uDevices[fd] != None:
|
if self.uDevices[fd] != None:
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
self.uDevices[fd] = UInput.from_device(self.iDevices[fd])
|
self.uDevices[fd] = UInput.from_device(self.iDevices[fd], name='fenrir-uinput')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
try:
|
try:
|
||||||
self.env['runtime']['debug'].writeDebugOut('InputDriver evdev: compat fallback: ' + str(e),debug.debugLevel.WARNING)
|
self.env['runtime']['debug'].writeDebugOut('InputDriver evdev: compat fallback: ' + str(e),debug.debugLevel.WARNING)
|
||||||
|
Loading…
Reference in New Issue
Block a user