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) {}
|
2019-08-16 07:05:00 +00:00
|
|
|
~HIDListenerBSD() override = default;
|
2016-01-31 08:37:23 +00:00
|
|
|
|
2019-08-16 07:05:00 +00:00
|
|
|
bool startScanning() override { return false; }
|
|
|
|
bool stopScanning() override { return false; }
|
2016-01-31 08:37:23 +00:00
|
|
|
|
2019-08-16 07:05:00 +00:00
|
|
|
bool scanNow() override { 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
|