boo/lib/inputdev/IHIDDevice.hpp

24 lines
623 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, uint16_t message)=0;
virtual size_t _recieveReport(const uint8_t* data, size_t length, uint16_t message) {return 0;}
public:
inline virtual ~IHIDDevice() {}
};
}
#endif // IHIDDEVICE_HPP