mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
4cb3baba5c
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.
25 lines
544 B
C++
25 lines
544 B
C++
// Copyright 2019 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "Common/Matrix.h"
|
|
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
|
|
#include "InputCommon/ControllerInterface/Device.h"
|
|
|
|
namespace ControllerEmu
|
|
{
|
|
class IMUAccelerometer : public ControlGroup
|
|
{
|
|
public:
|
|
using StateData = Common::Vec3;
|
|
|
|
IMUAccelerometer(std::string name, std::string ui_name);
|
|
|
|
std::optional<StateData> GetState() const;
|
|
};
|
|
} // namespace ControllerEmu
|