16 #ifndef SURGSIM_DEVICES_MULTIAXIS_WIN32_WDKHIDDEVICEHANDLE_H 17 #define SURGSIM_DEVICES_MULTIAXIS_WIN32_WDKHIDDEVICEHANDLE_H 24 #include "SurgSim/Devices/MultiAxis/SystemInputDeviceHandle.h" 58 static std::unique_ptr<WdkHidDeviceHandle> open(
const std::string& path,
59 std::shared_ptr<SurgSim::Framework::Logger> logger);
61 std::string getDeviceName()
const override;
63 bool getDeviceIds(
int* vendorId,
int* productId)
const override;
65 bool hasTranslationAndRotationAxes()
const override;
69 void prepareForShutdown()
override;
84 bool getCapabilities(
struct _HIDP_CAPS* capabilities)
const;
89 bool startAsynchronousRead();
96 bool finishAsynchronousRead(
size_t* numBytesRead);
100 void cancelAsynchronousRead();
109 void decodeStateUpdates(
const unsigned char* rawData,
size_t rawDataSize,
114 std::unique_ptr<State> m_state;
120 #endif // SURGSIM_DEVICES_MULTIAXIS_WIN32_WDKHIDDEVICEHANDLE_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
An object that can be used to control logging parameters, such as verbosity and log output destinatio...
Definition: Logger.h:51
Definition: WdkHidDeviceHandle.cpp:61
Access to an input/HID device using the HID API from the Windows Driver Kit.
Definition: WdkHidDeviceHandle.h:43