2017-12-06 03:20:59 +00:00
|
|
|
#define _CRT_SECURE_NO_WARNINGS 1 /* STFU MSVC */
|
2019-08-19 23:08:54 +00:00
|
|
|
|
2017-12-06 03:20:59 +00:00
|
|
|
#include "boo/inputdev/IHIDListener.hpp"
|
|
|
|
#include "boo/inputdev/DeviceFinder.hpp"
|
|
|
|
|
2018-12-08 05:17:51 +00:00
|
|
|
namespace boo {
|
2017-12-06 03:20:59 +00:00
|
|
|
|
2018-12-08 05:17:51 +00:00
|
|
|
class HIDListenerUWP : public IHIDListener {
|
2017-12-06 03:20:59 +00:00
|
|
|
public:
|
2018-12-08 05:17:51 +00:00
|
|
|
HIDListenerUWP(DeviceFinder& finder) {}
|
2017-12-06 03:20:59 +00:00
|
|
|
|
2018-12-08 05:17:51 +00:00
|
|
|
/* Automatic device scanning */
|
2019-08-16 07:05:00 +00:00
|
|
|
bool startScanning() override { return false; }
|
|
|
|
bool stopScanning() override { return false; }
|
2017-12-06 03:20:59 +00:00
|
|
|
|
2018-12-08 05:17:51 +00:00
|
|
|
/* Manual device scanning */
|
2019-08-16 07:05:00 +00:00
|
|
|
bool scanNow() override { return false; }
|
2017-12-06 03:20:59 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:17:51 +00:00
|
|
|
std::unique_ptr<IHIDListener> IHIDListenerNew(DeviceFinder& finder) { return std::make_unique<HIDListenerUWP>(finder); }
|
2017-12-06 03:20:59 +00:00
|
|
|
|
2018-12-08 05:17:51 +00:00
|
|
|
} // namespace boo
|