boo/lib/inputdev/IHIDDevice.hpp

24 lines
623 B
C++
Raw Normal View History

2015-04-19 20:16:50 +00:00
#ifndef IHIDDEVICE_HPP
#define IHIDDEVICE_HPP
2015-08-18 22:43:30 +00:00
#include "boo/inputdev/DeviceToken.hpp"
2015-04-29 10:24:39 +00:00
namespace boo
{
2015-04-19 22:52:45 +00:00
class IHIDDevice
{
2015-08-18 19:40:26 +00:00
friend class DeviceBase;
2015-04-22 21:48:23 +00:00
virtual void _deviceDisconnected()=0;
2015-05-10 07:02:18 +00:00
virtual bool _sendUSBInterruptTransfer(const uint8_t* data, size_t length)=0;
virtual size_t _receiveUSBInterruptTransfer(uint8_t* data, size_t length)=0;
2015-05-15 01:16:36 +00:00
virtual bool _sendHIDReport(const uint8_t* data, size_t length, uint16_t message)=0;
2015-08-31 03:40:58 +00:00
virtual size_t _recieveReport(const uint8_t* data, size_t length, uint16_t message) {return 0;}
public:
2015-05-04 04:28:07 +00:00
inline virtual ~IHIDDevice() {}
2015-04-19 22:52:45 +00:00
};
2015-04-19 20:16:50 +00:00
2015-04-29 10:24:39 +00:00
}
2015-04-19 20:16:50 +00:00
#endif // IHIDDEVICE_HPP