-
Notifications
You must be signed in to change notification settings - Fork 19
Add support for user-defined Custom devices #89
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
base: master
Are you sure you want to change the base?
Conversation
…rted device arrays
|
Regarding this:
I'm not sure if I should be putting "file names" and "directories/paths" in DS4Devices.cs. if there is a better place for me to put these 2 strings let me know. |
|
What version of ds4windows has this feature? I was looking everywhere for it in 3.9.9 |
There is none. A pull request is a suggestion, it's not guaranteed to be a public release. |
With this PR the list of supported devices used for device detection is created based on a combination of both the hard-coded registered devices and user-chosen ones, which will be loaded from disk by reading a CustomDevices.json file during app initialization.
To facilitate the process a Custom Devices Editor tab was added to the Device Options window, allowing to add, edit and remove devices. Users can configure:
It's possible to overwrite a hard-code device with a user-defined one by defining the same VID/PID. With this the custom-device takes priority. This can be useful to, for example, remove a specific support for a hard-coded device by making a custom one with detection disabled.
The "combined" supported device list that is used in detection is set only once during startup and automatically when the user makes changes via the custom devices editor, so I don't think there should be any performance hit besides the one caused by reading the .json file on application initialization