Re-fix lint?!
This commit is contained in:
Drashna Jael're 2023-11-20 23:32:28 -08:00
parent b54db09186
commit 8b9ada2640
No known key found for this signature in database
GPG Key ID: DBA1FD3A860D1B11
2 changed files with 13 additions and 13 deletions

View File

@ -24,12 +24,12 @@
#define SPACEMOUSE_LENGTH_PACKET (SPACEMOUSE_LENGTH_HEADER + SPACEMOUSE_LENGTH_DATA + SPACEMOUSE_LENGTH_CHECKSUM + SPACEMOUSE_LENGTH_FOOTER) #define SPACEMOUSE_LENGTH_PACKET (SPACEMOUSE_LENGTH_HEADER + SPACEMOUSE_LENGTH_DATA + SPACEMOUSE_LENGTH_CHECKSUM + SPACEMOUSE_LENGTH_FOOTER)
enum spacemouse_commands { enum spacemouse_commands {
SPACEMOUSE_CMD_REQUEST_DATA = 0xAC, SPACEMOUSE_CMD_REQUEST_DATA = 0xAC,
SPACEMOUSE_CMD_SET_ZERO_POSITION = 0xAD, SPACEMOUSE_CMD_SET_ZERO_POSITION = 0xAD,
SPACEMOUSE_CMD_AUTO_DATA_ON = 0xAE, SPACEMOUSE_CMD_AUTO_DATA_ON = 0xAE,
SPACEMOUSE_CMD_AUTO_DATA_OFF = 0xAF, SPACEMOUSE_CMD_AUTO_DATA_OFF = 0xAF,
SPACEMOUSE_CMD_END = 0x8D, SPACEMOUSE_CMD_END = 0x8D,
SPACEMOUSE_DATA_REQUEST_START = 0x96, SPACEMOUSE_DATA_REQUEST_START = 0x96,
}; };
typedef struct { typedef struct {
@ -41,6 +41,6 @@ typedef struct {
int16_t tilt_y; int16_t tilt_y;
} spacemouse_data_t; } spacemouse_data_t;
bool spacemouse_send_command(uint8_t cmd); bool spacemouse_send_command(uint8_t cmd);
bool spacemouse_init(void); bool spacemouse_init(void);
spacemouse_data_t spacemouse_get_data(void); spacemouse_data_t spacemouse_get_data(void);

View File

@ -264,7 +264,7 @@ report_mouse_t cirque_pinnacle_get_report(report_mouse_t mouse_report) {
static uint16_t x = 0, y = 0, last_scale = 0; static uint16_t x = 0, y = 0, last_scale = 0;
# if defined(CIRQUE_PINNACLE_TAP_ENABLE) # if defined(CIRQUE_PINNACLE_TAP_ENABLE)
mouse_report.buttons = pointing_device_handle_buttons(mouse_report.buttons, false, POINTING_DEVICE_BUTTON1); mouse_report.buttons = pointing_device_handle_buttons(mouse_report.buttons, false, POINTING_DEVICE_BUTTON1);
# endif # endif
# ifdef POINTING_DEVICE_GESTURES_CURSOR_GLIDE_ENABLE # ifdef POINTING_DEVICE_GESTURES_CURSOR_GLIDE_ENABLE
cursor_glide_t glide_report = {0}; cursor_glide_t glide_report = {0};
@ -496,14 +496,14 @@ const pointing_device_driver_t pointing_device_driver = {
static bool spacemouse_present = false; static bool spacemouse_present = false;
__attribute__((weak)) void spacemouse_module_handle_axises(spacemouse_data_t *spacemouse_data, report_mouse_t* mouse_report) { __attribute__((weak)) void spacemouse_module_handle_axises(spacemouse_data_t* spacemouse_data, report_mouse_t* mouse_report) {
#ifdef SPACEMOUSE_USE_TILT_AXIS # ifdef SPACEMOUSE_USE_TILT_AXIS
mouse_report->x = CONSTRAIN_HID_XY(spacemouse_data->tilt_x); mouse_report->x = CONSTRAIN_HID_XY(spacemouse_data->tilt_x);
mouse_report->y = CONSTRAIN_HID_XY(spacemouse_data->tilt_y); mouse_report->y = CONSTRAIN_HID_XY(spacemouse_data->tilt_y);
#else # else
mouse_report->x = CONSTRAIN_HID_XY(spacemouse_data->x); mouse_report->x = CONSTRAIN_HID_XY(spacemouse_data->x);
mouse_report->y = CONSTRAIN_HID_XY(spacemouse_data->y); mouse_report->y = CONSTRAIN_HID_XY(spacemouse_data->y);
#endif # endif
} }
static report_mouse_t spacemouse_get_report(report_mouse_t mouse_report) { static report_mouse_t spacemouse_get_report(report_mouse_t mouse_report) {