Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Allow per device program allow/deny listing #5

Open
IslandJohn opened this issue Dec 22, 2020 · 4 comments
Open

FR: Allow per device program allow/deny listing #5

IslandJohn opened this issue Dec 22, 2020 · 4 comments

Comments

@IslandJohn
Copy link

Please add per-device program allow listing.
It would convenient to have deny listing instead (some programs behave fine, but block only those that don't).

@dixonte
Copy link
Owner

dixonte commented Dec 22, 2020

I lean on HidGuardian to do the actual hiding of devices, and I didn't write that. It's a kernel driver, and that's a little beyond my knowledge. As such we're probably stuck with an allow-list for now at least.

Without changing HidGuardian it might be possible to get something approximating 'per-device program allow listing'... maybe. Could you describe your intended use-case?

@IslandJohn
Copy link
Author

I need to hide some devices only one one program (MSFS) because it crashes to desktop when there are too many devices connected. Also, for other programs (Squadrons) I would like to hide only some devices to bring it below the list it's willing to show in the UI (8). Most use cases revolve around similar issues.

I also noticed (likely a bug in HidGuardian) that return the devices in a non-deterministic order each time, therefore playing havoc some apps.

@dixonte
Copy link
Owner

dixonte commented Dec 23, 2020

I see. So it could possibly be feasible to have HidVanguard swap out the device block list when it detects a program running, it'd just be a question of if HidGuardian detects the change and if all this can be done before the program detects the devices.

I suspect the return order thing is more likely an issue with DirectInput, as an aside. It's sadly an old API, neglected in favour of XInput, which is only really suitable for Xbox controllers.

Regardless, I might poke around at this over the holidays.

@IslandJohn
Copy link
Author

The order seems to be deterministic without HidGuardian. Only after introducing it did I start having this issue. Although there's another odd that happens, which is that some program won't detect all the devices on launch, but will after they rescan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants