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

Could I help trying to get the iPega-SW025 (Nintendo Switch Pro) controller working? or could you help me to make changes on my end pls? #5

Open
mickael28 opened this issue Mar 12, 2022 · 4 comments

Comments

@mickael28
Copy link

mickael28 commented Mar 12, 2022

Hello,

Awesome plugin, I almost got it working with this iPega-SW025 controller, which can act as either:
http://ipega.hk/switchseries/75-377.html

  • bluetooth Android controller
  • bluetooth Nintendo Switch Pro controller

I tried this plugin in those 2 statuses and I get the following:

  • Android mode:
    • connected - static red light (as expected)
    • but neither buttons nor sticks respond
  • Switch Pro mode:
    • connected in UI - although the red light keeps on blinking constantly
    • neither buttons nor sticks respond either

As I get the green connected status in both cases, it seems we're almost there having this controller working too.

Do you guys, @Hydr8gon @Lemon-2333 , know what the issue could be?

Could you pls help me out trying to understand what I could do from my end to have this working?

I could provide you with anything you need from my end to help troubleshooting the problem if you could help, or if you know of any local changes I could try on my side and try a new plugin after your suggested changes, I could give that a go as well.

Really willing to have this working for so long!!!

Thank you guys.

@Hydr8gon
Copy link
Owner

It should work in Switch Pro mode. Some people have reported that if the controls don't work when you first pair, rebooting the Vita can fix it.

@mickael28
Copy link
Author

mickael28 commented Mar 12, 2022

I read the comments about the reboots and tried for many times in both modes (switch mode and android mode) but they keep behaving the same way:

  • android mode - connected as PG-SW025, red static light in the controller, but no buttons/sticks working
  • switch mode - connected as Switch controller pro, blinking red light even when connected, and no buttons/sticks working either.

On a side note, I managed to get the vid/pid for both modes and the switch mode is the same you've got in your config, so no idea why it doesn't end up working :S

For the android one, I commented out the failing lines when running make as they seemed to be about battery and motion sensors for now, added the Android vid/pid as a SwitchProController too but that didn't work either. In this case, the controller was still detected as a PG-SW025 and buttons not responding either.

controller.cpp

...
        DECL_CONTROLLER(0x057E, 0x2009, SwitchProController);
        DECL_CONTROLLER(0x1949, 0x0402, SwitchProController);  //I put this randomly to see if it worked with the ipega-sw025, as I didn't know how to modify anything else

Do you think there's something else we can try with how these 2 modes are behaving now?

These are the details I get when checking how the connection appears on an Android device:

  • Switch Mode:
I: Bus=0005 Vendor=057e Product=2009 Version=0001
N: Name="Pro Controller"
P: Phys=
S: Sysfs=/devices/virtual/misc/uhid/input15
U: Uniq=25:63:93:00:07:4E
H: Handlers=event11
B: PROP=0
B: EV=1b
B: KEY=ffff0000 0 0 0 0 0 0 0 0 0
B: ABS=ffffff00 3001b
B: MSC=10
  • Android Mode:
I: Bus=0005 Vendor=1949 Product=0402 Version=011b
N: Name="PG-SW025"
P: Phys=
S: Sysfs=/devices/virtual/misc/uhid/input13
U: Uniq=25:63:93:00:07:4E
H: Handlers=sysrq mouse1 event11 sec_debug keychord
B: PROP=0
B: EV=12001f
B: KEY=4837fff 72ff32d bf544446 0 ffff0000 70001 30f90 8b17c007 ffff7bfa d9415fff febeffdf ffefffff ffffffff fffffffe
B: REL=143
B: ABS=1 30627
B: MSC=10
B: LED=1f

@Hydr8gon
Copy link
Owner

There's no way it will work in Android mode right now; a new driver would have to be written specifically for it. In Switch mode, I don't see any reason why it wouldn't work. My real Switch Pro Controller works fine, and it must be using the same protocol or else it wouldn't work on a Switch. Unfortunately, there's not much I can do to help since I don't own the controller myself.

@mickael28
Copy link
Author

Thanks mate, it looks pretty weird indeed as the vid/pid seem exactly the same and yeah, it works fine on the Switch.

I'll keep looking into it for a few weeks and will update the thread for future reference if I manage to have it working, although as you said, it doesn't seem an obvious issues.

Thnk u!

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