This class holds information and state of single SpaceMouse device. More...
#include <MRSpaceMouseDevice.h>
Public Member Functions | |
| void | updateDevice (VendorId vId, ProductId pId) |
| Updates internal data by device ids (does nothing if ids is same for current device) | |
| void | resetDevice () |
| Invalidates this device and its state. | |
| bool | valid () const |
| Check if this device is set and valid. | |
| void | parseRawEvent (const DataPacketRaw &raw, int numBytes, Action &action) const |
Parses data from raw packet to unified action | |
| void | processAction (const Action &action) |
This class holds information and state of single SpaceMouse device.
| void MR::SpaceMouse::Device::parseRawEvent | ( | const DataPacketRaw & | raw, |
| int | numBytes, | ||
| Action & | action ) const |
Parses data from raw packet to unified action
| void MR::SpaceMouse::Device::processAction | ( | const Action & | action | ) |
Emit unified spacemouse signals in Viewer based on new action and current device state updates btn state if needed
| void MR::SpaceMouse::Device::resetDevice | ( | ) |
Invalidates this device and its state.
Updates internal data by device ids (does nothing if ids is same for current device)
| bool MR::SpaceMouse::Device::valid | ( | ) | const |
Check if this device is set and valid.