boo/lib/inputdev/HIDDeviceBSD.cpp

22 lines
503 B
C++
Raw Normal View History

2016-01-31 08:37:23 +00:00
#include "boo/inputdev/IHIDListener.hpp"
#include "boo/inputdev/DeviceFinder.hpp"
2018-12-08 05:17:51 +00:00
namespace boo {
2016-01-31 08:37:23 +00:00
2018-12-08 05:17:51 +00:00
class HIDListenerBSD final : public IHIDListener {
DeviceFinder& m_finder;
2016-01-31 08:37:23 +00:00
public:
2018-12-08 05:17:51 +00:00
HIDListenerBSD(DeviceFinder& finder) : m_finder(finder) {}
2016-01-31 08:37:23 +00:00
2018-12-08 05:17:51 +00:00
~HIDListenerBSD() {}
2016-01-31 08:37:23 +00:00
2018-12-08 05:17:51 +00:00
bool startScanning() { return false; }
bool stopScanning() { return false; }
2016-01-31 08:37:23 +00:00
2018-12-08 05:17:51 +00:00
bool scanNow() { return false; }
2016-01-31 08:37:23 +00:00
};
2018-12-08 05:17:51 +00:00
IHIDListener* IHIDListenerNew(DeviceFinder& finder) { return new HIDListenerBSD(finder); }
} // namespace boo