MeshLib C++ Docs
Loading...
Searching...
No Matches
MRSpaceMouseHandlerWinEvents.h
Go to the documentation of this file.
1#pragma once
2#ifdef _WIN32
3#include "MRViewerFwd.h"
6#include "MRMesh/MRSignal.h"
7
8namespace MR
9{
12
13class Win32MessageHandler;
14}
15
16namespace MR::SpaceMouse
17{
18
19class MRVIEWER_CLASS HandlerWinEvents : public Handler
20{
21public:
22
23 bool initialize() override;
24
26 virtual void handle() override {}
27
29 MRVIEWER_API bool hasValidDeviceConnected() const;
30private:
31 std::unique_ptr<Device> device_;
32
33 std::shared_ptr<Win32MessageHandler> winHandler_;
34 boost::signals2::scoped_connection winEventsConnection_;
35 size_t numMsg_ = 0;
36
37 void resetDevice_( void* handle );
38};
39
40}
41#endif
Definition MRSpaceMouseController.h:7
only for bindings generation
Definition MRCameraOrientationPlugin.h:8