mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-27 19:29:13 +00:00
Add support for motion controllers via the CemuHook controller input protocol.
This is done by: 1) Implementing said protocol in a new controller input class CemuHookUDPServer. 2) Adding functionality in the WiimoteEmu class for pushing that motion input to the emulated Wiimote and MotionPlus. 3) Suitably modifying the UI for configuring an Emulated Wii Remote.
This commit is contained in:
parent
f54faedd76
commit
4cb3baba5c
33 changed files with 1301 additions and 25 deletions
|
@ -30,6 +30,9 @@
|
|||
#ifdef CIFACE_USE_PIPES
|
||||
#include "InputCommon/ControllerInterface/Pipes/Pipes.h"
|
||||
#endif
|
||||
#ifdef CIFACE_USE_CEMUHOOKUDPSERVER
|
||||
#include "InputCommon/ControllerInterface/CemuHookUDPServer/CemuHookUDPServer.h"
|
||||
#endif
|
||||
|
||||
ControllerInterface g_controller_interface;
|
||||
|
||||
|
@ -67,6 +70,9 @@ void ControllerInterface::Initialize(const WindowSystemInfo& wsi)
|
|||
#endif
|
||||
#ifdef CIFACE_USE_PIPES
|
||||
// nothing needed
|
||||
#endif
|
||||
#ifdef CIFACE_USE_CEMUHOOKUDPSERVER
|
||||
ciface::CemuHookUDPServer::Init();
|
||||
#endif
|
||||
|
||||
RefreshDevices();
|
||||
|
@ -122,6 +128,9 @@ void ControllerInterface::RefreshDevices()
|
|||
#ifdef CIFACE_USE_PIPES
|
||||
ciface::Pipes::PopulateDevices();
|
||||
#endif
|
||||
#ifdef CIFACE_USE_CEMUHOOKUDPSERVER
|
||||
ciface::CemuHookUDPServer::PopulateDevices();
|
||||
#endif
|
||||
|
||||
m_is_populating_devices = false;
|
||||
InvokeDevicesChangedCallbacks();
|
||||
|
@ -172,6 +181,9 @@ void ControllerInterface::Shutdown()
|
|||
#ifdef CIFACE_USE_EVDEV
|
||||
ciface::evdev::Shutdown();
|
||||
#endif
|
||||
#ifdef CIFACE_USE_CEMUHOOKUDPSERVER
|
||||
ciface::CemuHookUDPServer::DeInit();
|
||||
#endif
|
||||
}
|
||||
|
||||
void ControllerInterface::AddDevice(std::shared_ptr<ciface::Core::Device> device)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue