boo/lib/inputdev/HIDListenerUWP.cpp

22 lines
573 B
C++
Raw Normal View History

2017-12-06 03:20:59 +00:00
#define _CRT_SECURE_NO_WARNINGS 1 /* STFU MSVC */
#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 */
bool startScanning() { return false; }
bool stopScanning() { return false; }
2017-12-06 03:20:59 +00:00
2018-12-08 05:17:51 +00:00
/* Manual device scanning */
bool scanNow() { 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