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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 442 443 444 445 446 ... 1198 Next »

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

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
GC Controller Inputs via named pipes
12-08-2015, 06:34 AM (This post was last modified: 12-08-2015, 06:38 AM by leolam. Edit Reason: Added a link )
#3
leolam Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,478
Threads: 5
Joined: Sep 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/Pipes
cd ~/.dolphin-emu/Pipes
mkfifo pipe

According 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 the
// Pipes directory and write commands out to it. Commands are separated
// by a newline character, with spaces separating command tokens.
// Command syntax is as follows, where curly brackets are one-of and square
// brackets are inclusive numeric ranges. Cases are sensitive. Numeric inputs
// are clamped to [0, 1] and otherwise invalid commands are discarded.
// {PRESS, RELEASE} {A, B, X, Y, Z, START, L, R, D_UP, D_DOWN, D_LEFT, D_RIGHT}
// SET {L, R} [0, 1]
// SET {MAIN, C} [0, 1] [0, 1]

So 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.
Website Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
GC Controller Inputs via named pipes - IR_ - 12-05-2015, 09:30 AM
RE: GC Controller Inputs via named pipes - IR_ - 12-05-2015, 09:31 AM
RE: GC Controller Inputs via named pipes - degasus - 12-08-2015, 09:19 PM
RE: GC Controller Inputs via named pipes - leolam - 12-08-2015, 06:34 AM
RE: GC Controller Inputs via named pipes - leolam - 12-08-2015, 06:36 AM
RE: GC Controller Inputs via named pipes - IR_ - 12-08-2015, 11:10 AM
RE: GC Controller Inputs via named pipes - IR_ - 12-08-2015, 12:00 PM
RE: GC Controller Inputs via named pipes - leolam - 12-08-2015, 06:41 PM
RE: GC Controller Inputs via named pipes - IR_ - 12-09-2015, 08:37 AM
RE: GC Controller Inputs via named pipes - spxtr - 12-09-2015, 12:30 PM
RE: GC Controller Inputs via named pipes - leolam - 12-10-2015, 12:20 AM
RE: GC Controller Inputs via named pipes - IR_ - 12-10-2015, 06:23 AM
RE: GC Controller Inputs via named pipes - IR_ - 12-10-2015, 07:52 AM

  • 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