mirror of https://github.com/AxioDL/boo.git
23 lines
505 B
C++
23 lines
505 B
C++
#ifndef IHIDDEVICE_HPP
|
|
#define IHIDDEVICE_HPP
|
|
|
|
#include "boo/inputdev/DeviceToken.hpp"
|
|
|
|
namespace boo
|
|
{
|
|
|
|
class IHIDDevice
|
|
{
|
|
friend class DeviceBase;
|
|
virtual void _deviceDisconnected()=0;
|
|
virtual bool _sendUSBInterruptTransfer(const uint8_t* data, size_t length)=0;
|
|
virtual size_t _receiveUSBInterruptTransfer(uint8_t* data, size_t length)=0;
|
|
virtual bool _sendHIDReport(const uint8_t* data, size_t length)=0;
|
|
public:
|
|
inline virtual ~IHIDDevice() {}
|
|
};
|
|
|
|
}
|
|
|
|
#endif // IHIDDEVICE_HPP
|