mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-23 21:03:16 +00:00
32 lines
1 KiB
C++
32 lines
1 KiB
C++
#pragma once
|
|
#include "bluetoothcontroller.hpp"
|
|
|
|
namespace controller {
|
|
|
|
enum WiiControllerLEDs {
|
|
WiiControllerLEDs_P1 = 0x10,
|
|
WiiControllerLEDs_P2 = 0x20,
|
|
WiiControllerLEDs_P3 = 0x40,
|
|
WiiControllerLEDs_P4 = 0x80,
|
|
};
|
|
|
|
class WiiController : public BluetoothController {
|
|
|
|
public:
|
|
Result initialize(void);
|
|
|
|
protected:
|
|
WiiController(const BluetoothAddress *address, ControllerType type) : BluetoothController(address, type) {};
|
|
|
|
Result writeMemory(const BluetoothAddress *address, uint32_t writeaddr, const uint8_t *data, uint8_t length);
|
|
Result setReportMode(const BluetoothAddress *address, uint8_t mode);
|
|
Result setPlayerLeds(const BluetoothAddress *address, uint8_t mask);
|
|
|
|
private:
|
|
//void mapStickValues(JoystickPosition *dst, const Dualshock4StickData *src);
|
|
//void handleInputReport0x01(const Dualshock4ReportData *data);
|
|
//void handleInputReport0x11(const Dualshock4ReportData *data);
|
|
};
|
|
|
|
|
|
}
|