![]() |
|
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: Support (https://forums.dolphin-emu.org/Forum-support) +--- Thread: GC Controller Inputs via named pipes (/Thread-gc-controller-inputs-via-named-pipes) Pages:
1
2
|
GC Controller Inputs via named pipes - IR_ - 12-05-2015 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 sunothing 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? RE: GC Controller Inputs via named pipes - IR_ - 12-05-2015 also, if anyone could contact spxtr, the creator of this feature, that would be great. i don't know if he has an account on the forums. thanks all. RE: GC Controller Inputs via named pipes - leolam - 12-08-2015 Not a developer here, but… You don't have to (and imo, you simply shouldn't) create the Pipes directory in the global system directory; you could just create it in your local, user-specific .dolphin-emu (located at ~/.dolphin-emu normally). So to create the pipe: Code: mkdir ~/.dolphin-emu/PipesAccording to comments left in the code by spxtr, valid commands are as follows: Code: // To create a piped controller input, create a named pipe in theSo for example, you would do echo "PRESS X" > pipe to press the X button, "RELEASE X" to release it. Your syntax was incorrect, which is why Dolphin ignored your commands. Also, merely creating the pipe is not enough: you have to go in the Controllers settings, and configure them to use the Pipe device as the controller device. Make sure to check Background Input or Dolphin won't take input from the pipe unless it is focused. RE: GC Controller Inputs via named pipes - leolam - 12-08-2015 By the way, the pipe can be named anything you like, not just pipe. RE: GC Controller Inputs via named pipes - IR_ - 12-08-2015 thanks for all your help. this looks promising. RE: GC Controller Inputs via named pipes - IR_ - 12-08-2015 alright, it's almost working. I found the pipe, selected it, and tried to send commands to it. Unfortunantly dolphin does not recieve inputs. Background input is true, and I have tried various deviations from echo "PRESS START" > pipe but to no avail. I tried cat pipe then entered my command in a different terminal and cat displayed it properly, so it should be working?? RE: GC Controller Inputs via named pipes - leolam - 12-08-2015 That's weird. Did you also configure the button mappings? RE: GC Controller Inputs via named pipes - degasus - 12-08-2015 (12-05-2015, 09:31 AM)IR_ Wrote: also, if anyone could contact spxtr, the creator of this feature, that would be great. i don't know if he has an account on the forums. thanks all. He is on IRC very often: #dolphin-dev @freenode RE: GC Controller Inputs via named pipes - IR_ - 12-09-2015 (12-08-2015, 06:41 PM)leolam Wrote: That's weird. Did you also configure the button mappings? no, i didn't configure them. I pressed 'clear' before setting device to Pipe/0/pipe RE: GC Controller Inputs via named pipes - spxtr - 12-09-2015 You need to configure them like a regular controller, by sending "PRESS A" after pressing the A button button, and so on. It's a pain, I know, but you only have to do it once. Might be worth making a default config for these. |