From d9d6cf8eda0d4cd8d0350c1a4e9b5f6b708e084d Mon Sep 17 00:00:00 2001 From: spxtr Date: Sat, 24 Oct 2015 20:20:03 -0700 Subject: 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. --- Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp') diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp index 0631069e16..93cd744003 100644 --- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp +++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp @@ -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; } -- cgit v1.2.3