• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 31 32 33 34 35 ... 116 Next »

GC Controller Inputs via named pipes
View New Posts | View Today's Posts

Thread Closed 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
GC Controller Inputs via named pipes
12-07-2015, 07:24 AM
#1
IR_ Offline
Junior Member
**
Posts: 10
Threads: 2
Joined: Dec 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.
Find
12-07-2015, 07:26 AM
#2
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,839
Threads: 7
Joined: Oct 2014
There's a short description here: https://github.com/dolphin-emu/dolphin/pull/3170
Find
12-08-2015, 07:03 AM (This post was last modified: 12-08-2015, 07:03 AM by IR_.)
#3
IR_ Offline
Junior Member
**
Posts: 10
Threads: 2
Joined: Dec 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
Find
12-08-2015, 08:53 AM
#4
leolam Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,478
Threads: 5
Joined: Sep 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
Website Find
12-08-2015, 12:02 PM
#5
IR_ Offline
Junior Member
**
Posts: 10
Threads: 2
Joined: Dec 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.
Find
12-08-2015, 01:17 PM
#6
mbc07 Offline
Wiki Caretaker
*******
Content Creators (Moderators)
Posts: 3,562
Threads: 47
Joined: Dec 2010
Please do not create duplicated threads.
Avell A70 MOB: Core i7-11800H, GeForce RTX 3060, 16 GB DDR4-3200, Windows 11 (Insider Preview)
ASRock Z97M OC Formula: Pentium G3258, GeForce GT 440, 16 GB DDR3-1600, Windows 10 (22H2)
Find
« Next Oldest | Next Newest »
Thread Closed 


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode