joycontrol icon indicating copy to clipboard operation
joycontrol copied to clipboard

Support controllers over the network

Open gvieralopez opened this issue 4 years ago • 3 comments

I was wondering if it is possible to map the inputs of a device in a different system and send them over the network to the the computer near the Switch with the Bluetooth controller. This project does it, but I couldn't use it because their pairing process is not working in SwitchOS 12.1.0.

gvieralopez avatar Aug 28 '21 09:08 gvieralopez

This is possible, I've done it on a personal project that uses this. Mine is a lot more rudimentary than that one. Basically, you need to write some code that can read inputs from the controller and turn it into a code that is small so you can send them over the network. I use WebSocket to establish connection between client and computer near the Switch. The host computer receives the code and translates it into a corresponding switch input, then uses Poohl's joycontrol to actually send the input to the Switch.

cazwacki avatar Aug 28 '21 12:08 cazwacki

This is possible, I've done it on a personal project that uses this. Mine is a lot more rudimentary than that one. Basically, you need to write some code that can read inputs from the controller and turn it into a code that is small so you can send them over the network. I use WebSocket to establish connection between client and computer near the Switch. The host computer receives the code and translates it into a corresponding switch input, then uses Poohl's joycontrol to actually send the input to the Switch.

Thanks a lot for pointing your project. I will test it this weekend. Any chance you know if it works on SwitchOS 12.1.0?

gvieralopez avatar Aug 28 '21 14:08 gvieralopez

Yes, it seems to be working. A friend has been playing Animal Crossing frequently on my Switch even recently, with the software updated. Note that the existing issues in joycontrol (e.g. gyroscope erratic behavior, etc.) will be reflected in my project as well.

cazwacki avatar Aug 28 '21 14:08 cazwacki