Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update config_sample.h #44

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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