From 9082a3ad5096f2f560da17c7be764e9dc35c6c84 Mon Sep 17 00:00:00 2001 From: Onyshchuk Kyrylo <60102660+evolventum@users.noreply.github.com> Date: Mon, 8 Jul 2024 17:37:14 +0300 Subject: [PATCH 1/2] Update config_sample.h done with full button list of byteIDs for SpaceMouse Pro Wireless model --- spacemouse-keys/config_sample.h | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/spacemouse-keys/config_sample.h b/spacemouse-keys/config_sample.h index cfe3412..aad666f 100644 --- a/spacemouse-keys/config_sample.h +++ b/spacemouse-keys/config_sample.h @@ -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? From c4374c76658dbca1fc488a2cfa1bc9f4ba8f4359 Mon Sep 17 00:00:00 2001 From: AndunHH Date: Mon, 8 Jul 2024 20:20:11 +0200 Subject: [PATCH 2/2] Update HIDMAXBUTTONS to 32 --- spacemouse-keys/hidInterface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacemouse-keys/hidInterface.h b/spacemouse-keys/hidInterface.h index 7fefe48..9fd7bbe 100644 --- a/spacemouse-keys/hidInterface.h +++ b/spacemouse-keys/hidInterface.h @@ -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)