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] linuxraw: Create Nintendo Switch Pro Controller (non-HID) (default-off).cfg #1159

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

Conversation

davidhedlund
Copy link
Contributor

No description provided.

@davidhedlund davidhedlund changed the title Create Pro Controller (default-off).cfg sdl2/Pro Controller (default-off).cfg created Aug 1, 2024
@davidhedlund davidhedlund changed the title sdl2/Pro Controller (default-off).cfg created linuxraw/Pro Controller (default-off).cfg created Aug 1, 2024
@davidhedlund davidhedlund changed the title linuxraw/Pro Controller (default-off).cfg created linuxraw: Pro Controller (default-off).cfg created Aug 1, 2024
@davidhedlund davidhedlund changed the title linuxraw: Pro Controller (default-off).cfg created linuxraw: Create Pro Controller (default-off).cfg Aug 2, 2024
Removed manually added product and vendor ID variables since the were not generated by "Save Controller Profile".

"The linuxraw driver uses an interface that does not provide product and vendor IDs, just a name - see JSIOCGNAME.
I am not sure where the existing linuxraw autoconfig values came from, but since driver always sets these as 0, those extra identifiers can not help in matching the correct profile..." - libretro/RetroArch#16828 (comment)
# The autoconfig file remains enabled by default, even though the widely-used Nintendo Switch Pro Controller (nintendo-hid version) file is also active. Generally, we disable autoconfig files that create conflicts with input_driver and input_device. However, since linuxraw relies on input_device, and the variable values differ between the HID and non-HID versions of this controller, both autoconfig files can coexist without issues.
@davidhedlund davidhedlund changed the title linuxraw: Create Pro Controller (default-off).cfg linuxraw: Create Pro Controller.cfg Aug 8, 2024
# The autoconfig file remains enabled by default, even though the widely-used Nintendo Switch Pro Controller (nintendo-hid version) file is also active. Generally, we disable autoconfig files that create conflicts with input_driver and input_device. However, since linuxraw relies on input_device, and the variable values differ between the HID and non-HID versions of this controller, both autoconfig files can coexist without issues.
@davidhedlund davidhedlund changed the title linuxraw: Create Pro Controller.cfg [READY] linuxraw: Create Pro Controller.cfg Aug 17, 2024
# This file has not been evaluated. The linuxraw autoconfig files cannot be assessed in Remote RetroPad or in games until this issue is resolved: [IMPORTANT] linuxraw: Mapping variables are ineffective - https://github.com/libretro/RetroArch/issues/16856[1].
input_l_x_plus_axis = "+0"
input_l_x_minus_axis = "-0"
input_l_y_plus_axis = "+1"
input_l_y_minus_axis = "-1"
input_r_x_plus_axis = "+2"
input_r_x_minus_axis = "-2"
input_r_y_plus_axis = "+3"
# input_r_y_minus_axis has manually been set here: Nintendo Switch Pro Controller+Linux 5.15 (non-HID) does not register thumb sticks - libretro/RetroArch#16905
input_r_y_minus_axis = "-3"
input_device_display_name = "Nintendo Switch Pro Controller (non-HID) (Bluetooth)"
@davidhedlund davidhedlund changed the title [READY] linuxraw: Create Pro Controller.cfg [READY] linuxraw: Create Pro Controller (default-off).cfg Aug 26, 2024
@davidhedlund davidhedlund changed the title [READY] linuxraw: Create Pro Controller (default-off).cfg [READY] linuxraw: Create Pro Controller (default-off).cfg. And create a Nintendo Co., Ltd. Pro Controller (default-off).cfg copy Sep 4, 2024
@davidhedlund davidhedlund changed the title [READY] linuxraw: Create Pro Controller (default-off).cfg. And create a Nintendo Co., Ltd. Pro Controller (default-off).cfg copy [READY] linuxraw: Create Pro Controller (default-off).cfg Sep 6, 2024
… Pro Controller (default-off).cfg

After re-evaluation, the name was corrected. The "Nintendo Switch Pro Controller" is utilized for Bluetooth connections.
@davidhedlund davidhedlund changed the title [READY] linuxraw: Create Pro Controller (default-off).cfg [READY] linuxraw: Create Nintendo Switch Pro Controller (default-off).cfg Sep 13, 2024
remove input_screenshot_btn = "13" -- the screenshot button does not work
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.

Could you clarify why we are adding this one when linuxraw/Nintendo Switch Pro Controller.cfg already exists?

It looks like the only difference is the A/B flipped. RetroArch uses the retropad scheme:
https://www.lakka.tv/doc/Input-settings/

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

Added "(non-HID) " to the filename
@davidhedlund davidhedlund changed the title [READY] linuxraw: Create Nintendo Switch Pro Controller (default-off).cfg [READY] linuxraw: Create Nintendo Switch Pro Controller (non-HID) (default-off).cfg Oct 2, 2024
@davidhedlund
Copy link
Contributor Author

Could you clarify why we are adding this one when linuxraw/Nintendo Switch Pro Controller.cfg already exists?

I added "(non-HID) " to the filename for this PR.

It looks like the only difference is the A/B flipped. RetroArch uses the retropad scheme: https://www.lakka.tv/doc/Input-settings/

That is incorrect. The HID file have completely different bindings. Have a look at: https://github.com/libretro/retroarch-joypad-autoconfig/blob/master/linuxraw/Nintendo%20Switch%20Pro%20Controller.cfg

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