mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 14:58:32 +00:00
GC controller input using named pipes
Currently only works on unix, but can be extended to other systems. Can also be extended to do wiimotes. Searches the Pipes folder for readable named pipes and creates a dolphin input device out of them. Send controller inputs to the game by writing to the file. Commands are described in Pipes.h.
This commit is contained in:
parent
b0bbe52cc9
commit
d9d6cf8eda
9 changed files with 266 additions and 0 deletions
|
@ -29,6 +29,9 @@
|
|||
#ifdef CIFACE_USE_EVDEV
|
||||
#include "InputCommon/ControllerInterface/evdev/evdev.h"
|
||||
#endif
|
||||
#ifdef CIFACE_USE_PIPES
|
||||
#include "InputCommon/ControllerInterface/Pipes/Pipes.h"
|
||||
#endif
|
||||
|
||||
using namespace ciface::ExpressionParser;
|
||||
|
||||
|
@ -75,6 +78,9 @@ void ControllerInterface::Initialize(void* const hwnd)
|
|||
#ifdef CIFACE_USE_EVDEV
|
||||
ciface::evdev::Init(m_devices);
|
||||
#endif
|
||||
#ifdef CIFACE_USE_PIPES
|
||||
ciface::Pipes::Init(m_devices);
|
||||
#endif
|
||||
|
||||
m_is_init = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue