Skip to content

Commit

Permalink
Merge pull request #44 from evolventum/greenEdition
Browse files Browse the repository at this point in the history
Update config_sample.h to include all keys from the space mouse pro.
  • Loading branch information
AndunHH authored Jul 8, 2024
2 parents 9a05bb5 + c4374c7 commit 930ea19
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
33 changes: 16 additions & 17 deletions spacemouse-keys/config_sample.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,27 +165,26 @@

// In order to define which key is assigned to which button, the following list must be entered in the BUTTONLIST below

// #define ?? 0 // Key ?
#define SM_FIT 1 // Key "Fit"
#define SM_T 2 // Key "T" top
// #define ?? 3 // Key ?
#define SM_R 4 // Key "R" right
#define SM_F 5 // Key "F" Front
// #define ?? 6 // Key ?
// #define ?? 7 // Key ?
#define SM_CA 8 // Key Rotate 90° ("ca = cube with arrow")
// #define ?? 9 // Key ?
// #define ?? 10 // Key ?
// #define ?? 11 // Key ?
#define SM_4 12 // Key "4" sketch
// #define ?? 13 // Key ?
#define SM_3 14 // Key "3" Partools
// #define ?? 15 // Key ?
#define SM_MENU 0 // Key "Menu"
#define SM_FIT 1 // Key "Fit"
#define SM_T 2 // Key "Top"
#define SM_R 4 // Key "Right"
#define SM_F 5 // Key "Front"
#define SM_RCW 8 // Key "Roll 90°CW"
#define SM_1 12 // Key "1"
#define SM_2 13 // Key "2"
#define SM_3 14 // Key "3"
#define SM_4 15 // Key "4"
#define SM_ESC 22 // Key "ESC"
#define SM_ALT 23 // Key "ALT"
#define SM_SHFT 24 // Key "SHIFT"
#define SM_CTRL 25 // Key "CTRL"
#define SM_ROT 26 // Key "Rotate"

// BUTTONLIST must have the as many elemets as NUMHIDKEYS
// That means: BUTTONLIST must be empty "{ }" if NUMHIDKEYS = 0
// The keys from KEYLIST are assigned to buttons here:
#define BUTTONLIST { SM_FIT, SM_T, SM_R, SM_CA }
#define BUTTONLIST { SM_FIT, SM_T, SM_R, SM_RCW }
// ------------------------------------------------------------------------------------

// Kill-Key Feature: Are there buttons to set the translation or rotation to zero?
Expand Down
2 changes: 1 addition & 1 deletion spacemouse-keys/hidInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// This portion sets up the communication with the 3DConnexion software. The communication protocol is created here.
// hidReportDescriptor webpage can be found here: https://eleccelerator.com/tutorial-about-usb-hid-report-descriptors/
#define HIDMAXBUTTONS 24 // must be multiple of 8!
#define HIDMAXBUTTONS 32 // must be multiple of 8!

static const uint8_t _hidReportDescriptor[] PROGMEM = {
0x05, 0x01, // Usage Page (Generic Desktop)
Expand Down

0 comments on commit 930ea19

Please sign in to comment.