xerpi / viimote

41 stars 7 forks source link

Wiimote not working for every vita game #11

Open Flo85o opened 4 years ago

Flo85o commented 4 years ago

Hi xerpi, just tested your viimote plugin. It's an awesome idea and opens up a lot of controller options (good controller options are scares on the ps tv). But i did not manage to get it working for every ps vita game, only a few are working. For example. it works perfectly with Shovel Knight (playing it now with a connected nes mini controller) but when i start the game VVVVVV it does not recognize the wiimote as a controller. Is it possible to alter it so that the wiimote acts like a connected ps3 controller so that games always recognize it as the main controller?

xerpi commented 4 years ago

I think the fix would be to do something like this: https://github.com/xerpi/ds4vita/commit/4fbde6cc5db4a19fad97cd31ec1a6968362f6385, in other words, to hook the sceCtrl functions instead of using ksceCtrlSetButtonEmulation.

Flo85o commented 4 years ago

Hi xerpi, thank you for the lightning fast reply. Wish i had some coding skills to understand your idea and language better. So if i understand it right, what the viimote plugin does is emulating a ps4 controller, so the vita tv thinks when pressing a button on the wiimote that i'm pressing a button on a connected ps4 controller (correct me if i'm wrong)? And that the sceCtrl functions are not emulated and can be enabled? Sorry for my lack of understanding.

xerpi commented 4 years ago

Unfortunately, I don't have time to do that myself, you can ask on the Vita-related Discord channels if any developer is interested.

Flo85o commented 4 years ago

Hi xerpi, will do that, thanks :)