Dolphin, the GameCube and Wii emulator - Forums
GC Controller Inputs via named pipes - Printable Version

+- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org)
+-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support)
+--- Forum: Development Discussion (https://forums.dolphin-emu.org/Forum-development-discussion)
+--- Thread: GC Controller Inputs via named pipes (/Thread-gc-controller-inputs-via-named-pipes--42802)



GC Controller Inputs via named pipes - IR_ - 12-07-2015

I posted this in the support forum the other day, but it didn't get any answers so ill post here instead. it might belong here anyways.

I recently saw that as of dolphin revision 4.0-8065, dolphin supports receiving gamecube controller inputs via named pipes. I looked around but could not find any documentation for how one would achieve this.

I then browsed through the code which was helpful and tried this
1) created a dir in /usr/share/dolphin-emu/sys/ with the name "Pipes"
2) created a named pipe called "pipe' in this directory.

then, to test whether the pipe had worked, I started up dolphin, set the controller settings to "Standard Controller" for both port 1 and 2 (the others were at "none") and plugged my controller into the adapter in slot 1. I started up the game (In this case super smash brothers melee for the nintendo gamecube) and did:
Code:
sudo su
echo 'a' > pipe
nothing happened. the a button was not pressed.


If anyone has any knowlodge on named pipes for controlling dolphin, that would be helpful.

tl:dr How do I send GC controller inputs to Dolphin via named pipes?


again, sorry for the double topic. i can delete the other one if need be (or the mods will delete whatever they feel is unnescary) but I really want to find out how to use this feature of dolphin. Thanks dolphin devs for your hard work developing this emulator.


RE: GC Controller Inputs via named pipes - JosJuice - 12-07-2015

There's a short description here: https://github.com/dolphin-emu/dolphin/pull/3170


RE: GC Controller Inputs via named pipes - IR_ - 12-08-2015

thanks for your help. This information is incredibly useful, except there is one problem. my pipe does not show up in the controller configuration. Perhaps the pipe feature of dolphin was disabled when i built it?

here's some stuff that might help to determine if I have created the pipe correctly.

Code:
$ pwd                                                                                                                              
/usr/share/dolphin-emu/sys/Pipes
$ ls -lah                                                                                                                          
total 8.0K                                                                                                                                                  
drwxr-xr-x  2 root   root  4.0K Dec  4 17:54 .                                                                                                              
drwxr-xr-x 10 root   root  4.0K Dec  4 17:54 ..                                                                                                            
prwxrwxrwx  1 username users    0 Dec  4 17:53 pipe


the pipe was created with mkfifo pipe, and the directory with mkdir Pipes


RE: GC Controller Inputs via named pipes - leolam - 12-08-2015

Have you tried creating it in your local .dolphin-emu? I replied to the other thread: https://forums.dolphin-emu.org/Thread-gc-controller-inputs-via-named-pipes?pid=393262#pid393262


RE: GC Controller Inputs via named pipes - IR_ - 12-08-2015

I replied to you in the other topic. really regret creating two topics now, just seemed like i would never get an answer there. i was (thankfully) wrong.


RE: GC Controller Inputs via named pipes - mbc07 - 12-08-2015

Please do not create duplicated threads.