Hydr8gon / VitaControl

Use bluetooth controllers on your Vita!
79 stars 13 forks source link

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 2 years ago

mickael28 commented 2 years ago

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

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

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 commented 2 years ago

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 commented 2 years ago

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:

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:

Hydr8gon commented 2 years ago

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 commented 2 years ago

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!