MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::SpaceMouse::Device Class Reference

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)
 

Detailed Description

This class holds information and state of single SpaceMouse device.

Member Function Documentation

◆ parseRawEvent()

void MR::SpaceMouse::Device::parseRawEvent ( const DataPacketRaw & raw,
int numBytes,
Action & action ) const

Parses data from raw packet to unified action

◆ processAction()

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

◆ resetDevice()

void MR::SpaceMouse::Device::resetDevice ( )

Invalidates this device and its state.

◆ updateDevice()

void MR::SpaceMouse::Device::updateDevice ( VendorId vId,
ProductId pId )

Updates internal data by device ids (does nothing if ids is same for current device)

◆ valid()

bool MR::SpaceMouse::Device::valid ( ) const

Check if this device is set and valid.


The documentation for this class was generated from the following file: