mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-09 13:37:48 +00:00
FreeBSD Stubs
This commit is contained in:
31
lib/inputdev/HIDDeviceBSD.cpp
Normal file
31
lib/inputdev/HIDDeviceBSD.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#include "boo/inputdev/IHIDListener.hpp"
|
||||
#include "boo/inputdev/DeviceFinder.hpp"
|
||||
|
||||
|
||||
namespace boo
|
||||
{
|
||||
|
||||
class HIDListenerBSD final : public IHIDListener
|
||||
{
|
||||
DeviceFinder& m_finder;
|
||||
public:
|
||||
HIDListenerBSD(DeviceFinder& finder)
|
||||
: m_finder(finder)
|
||||
{
|
||||
}
|
||||
|
||||
~HIDListenerBSD()
|
||||
{
|
||||
}
|
||||
|
||||
bool startScanning() { return false; }
|
||||
bool stopScanning() { return false; }
|
||||
|
||||
bool scanNow() { return false; }
|
||||
};
|
||||
|
||||
IHIDListener* IHIDListenerNew(DeviceFinder &finder)
|
||||
{
|
||||
return new HIDListenerBSD(finder);
|
||||
}
|
||||
}
|
||||
34
lib/inputdev/HIDListenerBSD.cpp
Normal file
34
lib/inputdev/HIDListenerBSD.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#include "IHIDDevice.hpp"
|
||||
#include "boo/inputdev/DeviceToken.hpp"
|
||||
#include "boo/inputdev/DeviceBase.hpp"
|
||||
|
||||
namespace boo
|
||||
{
|
||||
|
||||
class HIDDeviceBSD final : public IHIDDevice
|
||||
{
|
||||
DeviceToken& m_token;
|
||||
DeviceBase& m_devImp;
|
||||
|
||||
void _deviceDisconnected() {}
|
||||
bool _sendUSBInterruptTransfer(const uint8_t* data, size_t length) { return false; }
|
||||
size_t _receiveUSBInterruptTransfer(uint8_t* data, size_t length) { return 0; }
|
||||
bool _sendHIDReport(const uint8_t* data, size_t length, uint16_t message) { return false; }
|
||||
size_t _recieveReport(const uint8_t* data, size_t length, uint16_t message) {return 0; }
|
||||
public:
|
||||
HIDDeviceBSD(DeviceToken& token, DeviceBase& devImp)
|
||||
: m_token(token),
|
||||
m_devImp(devImp)
|
||||
{
|
||||
}
|
||||
|
||||
~HIDDeviceBSD()
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
IHIDDevice* IHIDDeviceNew(DeviceToken& token, DeviceBase& devImp)
|
||||
{
|
||||
return new HIDDeviceBSD(token, devImp);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user