16 #ifndef SURGSIM_DEVICES_MULTIAXIS_WIN32_WDKHIDDEVICEHANDLE_H 17 #define SURGSIM_DEVICES_MULTIAXIS_WIN32_WDKHIDDEVICEHANDLE_H 58 static std::unique_ptr<WdkHidDeviceHandle> open(
const std::string& path,
59 std::shared_ptr<SurgSim::Framework::Logger> logger);
63 virtual bool getDeviceIds(
int* vendorId,
int* productId)
const override;
65 virtual bool hasTranslationAndRotationAxes()
const override;
69 virtual 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 Definition: DriveElementFromInputBehavior.cpp:27
Access to an input/HID device using the HID API from the Windows Driver Kit.
Definition: WdkHidDeviceHandle.h:43
string(TOUPPER ${DEVICE}DEVICE_UPPER_CASE) option(BUILD_DEVICE_ $
Definition: CMakeLists.txt:35
std::unique_ptr< State > m_state
Definition: WdkHidDeviceHandle.h:113
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