mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-29 16:37:03 +00:00
16 lines
413 B
C++
16 lines
413 B
C++
#pragma once
|
|
|
|
class WiimoteDevice
|
|
{
|
|
friend class WiimoteInfo;
|
|
public:
|
|
virtual ~WiimoteDevice() = default;
|
|
|
|
virtual bool write_data(const std::vector<uint8>& data) = 0;
|
|
virtual std::optional<std::vector<uint8_t>> read_data() = 0;
|
|
|
|
virtual bool operator==(WiimoteDevice& o) const = 0;
|
|
bool operator!=(WiimoteDevice& o) const { return *this == o; }
|
|
};
|
|
|
|
using WiimoteDevicePtr = std::shared_ptr<WiimoteDevice>;
|