remove unneded detection
This commit is contained in:
parent
bdaf8e61fc
commit
14b644a009
@ -104,7 +104,6 @@ class driver():
|
|||||||
if not force:
|
if not force:
|
||||||
if len(deviceFileList) == self.iDeviceNo:
|
if len(deviceFileList) == self.iDeviceNo:
|
||||||
return
|
return
|
||||||
self.iDeviceNo = len(deviceFileList)
|
|
||||||
mode = self.env['runtime']['settingsManager'].getSetting('keyboard', 'device').upper()
|
mode = self.env['runtime']['settingsManager'].getSetting('keyboard', 'device').upper()
|
||||||
iDevicesFiles = []
|
iDevicesFiles = []
|
||||||
for device in self.iDevices:
|
for device in self.iDevices:
|
||||||
@ -133,6 +132,7 @@ class driver():
|
|||||||
self.iDevices[currDevice.fd] = currDevice
|
self.iDevices[currDevice.fd] = currDevice
|
||||||
self.grabDevice(currDevice.fd)
|
self.grabDevice(currDevice.fd)
|
||||||
print('Device added (ALL):' + self.iDevices[currDevice.fd].name)
|
print('Device added (ALL):' + self.iDevices[currDevice.fd].name)
|
||||||
|
print(currDevice.capabilities(verbose=True))
|
||||||
elif mode == 'NOMICE':
|
elif mode == 'NOMICE':
|
||||||
if not ((2 in cap) or (3 in cap)):
|
if not ((2 in cap) or (3 in cap)):
|
||||||
self.iDevices[currDevice.fd] = currDevice
|
self.iDevices[currDevice.fd] = currDevice
|
||||||
@ -144,6 +144,7 @@ class driver():
|
|||||||
print('Device added (Name):' + self.iDevices[currDevice.fd].name)
|
print('Device added (Name):' + self.iDevices[currDevice.fd].name)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("Skip Inputdevice : " + deviceFile +' ' + str(e))
|
print("Skip Inputdevice : " + deviceFile +' ' + str(e))
|
||||||
|
self.iDeviceNo = len(evdev.list_devices())
|
||||||
|
|
||||||
def mapEvent(self, event):
|
def mapEvent(self, event):
|
||||||
if not self._initialized:
|
if not self._initialized:
|
||||||
|
Loading…
Reference in New Issue
Block a user