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

Classes

struct  Action
 
class  Controller
 
class  Device
 This class holds information and state of single SpaceMouse device. More...
 
class  Handler
 base class for handler of spacemouse devices More...
 
class  HandlerHidapi
 
struct  Parameters
 

Typedefs

using VendorId = short unsigned int
 
using ProductId = short unsigned int
 
using DataPacketRaw = std::array<unsigned char, 13>
 

Enumerations

enum class  Buttons : int {
  SMB_NO = -1 , SMB_MENU , SMB_ESC , SMB_ENTER ,
  SMB_TAB , SMB_SHIFT , SMB_CTRL , SMB_ALT ,
  SMB_SPACE , SMB_DELETE , SMB_CUSTOM_1 , SMB_CUSTOM_2 ,
  SMB_CUSTOM_3 , SMB_CUSTOM_4 , SMB_CUSTOM_5 , SMB_CUSTOM_6 ,
  SMB_CUSTOM_7 , SMB_CUSTOM_8 , SMB_CUSTOM_9 , SMB_CUSTOM_10 ,
  SMB_CUSTOM_11 , SMB_CUSTOM_12 , SMB_FIT , SMB_TOP ,
  SMB_RIGHT , SMB_FRONT , SMB_ROLL_CW , SMB_LOCK_ROT ,
  SMB_BTN_V1 , SMB_BTN_V2 , SMB_BTN_V3 , SMB_ISO1 ,
  SMB_BUTTON_COUNT
}
 enumeration all spacemouse buttons More...
 

Variables

const std::unordered_map< VendorId, std::vector< ProductId > > cVendor2Device
 

Typedef Documentation

◆ DataPacketRaw

using MR::SpaceMouse::DataPacketRaw = std::array<unsigned char, 13>

◆ ProductId

using MR::SpaceMouse::ProductId = short unsigned int

◆ VendorId

using MR::SpaceMouse::VendorId = short unsigned int

Enumeration Type Documentation

◆ Buttons

enum class MR::SpaceMouse::Buttons : int
strong

enumeration all spacemouse buttons

Enumerator
SMB_NO 
SMB_MENU 
SMB_ESC 
SMB_ENTER 
SMB_TAB 
SMB_SHIFT 
SMB_CTRL 
SMB_ALT 
SMB_SPACE 
SMB_DELETE 
SMB_CUSTOM_1 
SMB_CUSTOM_2 
SMB_CUSTOM_3 
SMB_CUSTOM_4 
SMB_CUSTOM_5 
SMB_CUSTOM_6 
SMB_CUSTOM_7 
SMB_CUSTOM_8 
SMB_CUSTOM_9 
SMB_CUSTOM_10 
SMB_CUSTOM_11 
SMB_CUSTOM_12 
SMB_FIT 
SMB_TOP 
SMB_RIGHT 
SMB_FRONT 
SMB_ROLL_CW 
SMB_LOCK_ROT 
SMB_BTN_V1 
SMB_BTN_V2 
SMB_BTN_V3 
SMB_ISO1 
SMB_BUTTON_COUNT 

Variable Documentation

◆ cVendor2Device

const std::unordered_map<VendorId, std::vector<ProductId> > MR::SpaceMouse::cVendor2Device
Initial value:
= {
{ VendorId( 0x046d ), {
0xc603,
0xc605,
0xc606,
0xc621,
0xc623,
0xc625,
0xc626,
0xc627,
0xc628,
0xc629,
0xc62b,
0xc640
}},
{ VendorId( 0x256f ), {
0xc62e,
0xc62f,
0xc631,
0xc632,
0xc633,
0xc635,
0xc638,
0xc63a,
0xc652,
0xc658
}}
}
short unsigned int VendorId
Definition MRSpaceMouseDevice.h:12

known devices list if you change this value, do not forget to update MeshLib/scripts/70-space-mouse-meshlib.rules