mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-23 21:03:16 +00:00
30 lines
694 B
C++
30 lines
694 B
C++
#pragma once
|
|
#include "wiicontroller.hpp"
|
|
#include "switchcontroller.hpp"
|
|
|
|
namespace controller {
|
|
|
|
union WiimoteReportData {
|
|
struct {
|
|
WiiButtonData buttons;
|
|
uint8_t _unk;
|
|
} report0x30;
|
|
};
|
|
|
|
|
|
class WiimoteController : public WiiController {
|
|
|
|
public:
|
|
static constexpr const HardwareID hardwareIds[] = {
|
|
{0x057e, 0x0306}, // Official wiimote
|
|
};
|
|
|
|
WiimoteController(const BluetoothAddress *address);
|
|
|
|
void convertReportFormat(const HidReport *inReport, HidReport *outReport);
|
|
|
|
private:
|
|
void handleInputReport0x30(const WiimoteReportData *src, SwitchReportData *dst);
|
|
};
|
|
|
|
}
|