Only scan input devices not connected via USB

Fixes #6
This commit is contained in:
Hoang Hong Quan
2024-10-09 14:41:50 +07:00
parent 48c0ff74c7
commit 439359077f

4
Scripts/kext_maestro.py Normal file → Executable file
View File

@@ -194,10 +194,10 @@ class KextMaestro:
selected_kexts.append("BrightnessKeys")
for device_name, device_props in hardware_report.get("Input").items():
if not device_props.get("Bus Type", "").startswith("ACPI"):
if not device_props.get("Device"):
continue
device_id = device_props.get("Device ID")
device_id = device_props.get("Device")
idx = None
if device_id in pci_data.InputIDs:
idx = pci_data.InputIDs.index(device_id)