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

[READY] udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Pro Controller (non-HID) (default-off).cfg #1185

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

davidhedlund
Copy link
Contributor

@davidhedlund davidhedlund commented Aug 26, 2024

  • Streamlined the autoconfig file by removing comments and blank lines, sorting variables, and adding labels.
  • Removed "(old)" from the non-HID file and added "(default-off)" to the HID file to align with our updated naming convention.
  • Removed the comments as a standard procedure. "non-HID" is included in input_device_display_name.
  • Commented variables input_product_id and input_vendor_id, and input_device to disable this controller, to avoid conflicts with Nintendo Switch Pro Controller.cfg (HID).

…Controller (default-off).cfg

The individual responsible for uploading the file inadvertently swapped the non-HID autoconfig file with the HID autoconfig file. You can access the non-HID file [here](libretro@3abfcb2) and the HID file [here](libretro@3abfcb2).

To address this issue, I:
* Removed "(old)" from the non-HID file and added "(default-off)" to the HID file to align with our updated naming convention.
* Swapped their autoconfig data.

However, he was correct about one detail. He included `input_device = "Pro Controller"` (Bluetooth identifier name), which I mistakenly later changed to `input_device = "Nintendo Co., Ltd. Pro Controller"` (USB identifier name) ([source](libretro@98b1591)). The non-HID driver does not support USB connection for this controller, only Bluetooth.

I made this change because I believed the udev controller driver identified the controller using `input_vendor_id` / `input_product_id`, as generated by "Save Controller Profile" in RetroArch, but later discovered that udev relies on `input_device`, which led me to file a bug report. Consequently, I edited this file:
* I removed the commented variables `input_product_id` and `input_vendor_id` which fail to disable this controller.
* Commented `input_device = Pro Controller` to disable this controller to leave file name space for `Pro Controller.cfg` (HID) since Linux 6.8.0 (Ubuntu 24.04) also identifies this controller as "Pro Controller".

I filed this issue just a few days ago:
* [GitHub Issue](libretro/RetroArch#16904)

Additionally, I removed the comments as a standard procedure. "non-HID" is included in `input_device_display_name`.
@davidhedlund davidhedlund changed the title udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Pro Controller (default-off).cfg [READY] udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Pro Controller (default-off).cfg Aug 26, 2024
@davidhedlund davidhedlund changed the title [READY] udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Pro Controller (default-off).cfg [WAIT] udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Pro Controller (default-off).cfg Sep 2, 2024
@davidhedlund davidhedlund changed the title [WAIT] udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Pro Controller (default-off).cfg [READY] udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Pro Controller (default-off).cfg Sep 4, 2024
Copy link
Member

@RobLoach RobLoach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind merging all the Pro Controller-related PRs together? I'm finding it a bit difficult to review all the changes when so much changes across multtiple PRs.

…witch Pro Controller (non-HID) (default-off).cfg

added "(non-HID) " to the filename
@davidhedlund davidhedlund changed the title [READY] udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Pro Controller (default-off).cfg [READY] udev: Update and rename Nintendo Co., Ltd. Pro Controller (old).cfg to Pro Controller (non-HID) (default-off).cfg Oct 2, 2024
@davidhedlund
Copy link
Contributor Author

davidhedlund commented Oct 3, 2024

Would you mind merging all the Pro Controller-related PRs together? I'm finding it a bit difficult to review all the changes when so much changes across multtiple PRs.

First and foremost, most pull requests include numerous updates that I have detailed in the comments. This makes it challenging to review all the updates if they are merged. In the future, I'll aim to submit individual pull requests when they are less complex.

Additionally merging the PRs might reduce their scalability:

  • RetroArch 1.19.1 compatible PRs have a title beginning with "[READY]".
  • RetroArch 1.19.2 compatible PRs have a title beginning with "[Ready for RetroArch 1.19.2]"

Reaching this point has been quite time-consuming, so I kindly ask you to accept the current PR structure.

I need to practice Git.

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

Successfully merging this pull request may close these issues.

2 participants