diff options
author | Drashna Jaelre <drashna@live.com> | 2022-07-02 06:58:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-02 23:58:40 +1000 |
commit | 0c74892e9080e17db637a31d421f920862baaaef (patch) | |
tree | 588a0332b539a8f4134adfb3f71d53a62f1cc4df /keyboards/handwired/tractyl_manuform | |
parent | 326d3ffad87788f65045e529dd4605216d4d44d3 (diff) | |
download | qmk_firmware-0c74892e9080e17db637a31d421f920862baaaef.tar.gz qmk_firmware-0c74892e9080e17db637a31d421f920862baaaef.zip |
[Keyboard] Update Charybdis code for Extended Mouse reports (#17435)
Diffstat (limited to 'keyboards/handwired/tractyl_manuform')
-rw-r--r-- | keyboards/handwired/tractyl_manuform/tractyl_manuform.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/keyboards/handwired/tractyl_manuform/tractyl_manuform.c b/keyboards/handwired/tractyl_manuform/tractyl_manuform.c index 0ae49b6397..c68234d8d8 100644 --- a/keyboards/handwired/tractyl_manuform/tractyl_manuform.c +++ b/keyboards/handwired/tractyl_manuform/tractyl_manuform.c @@ -159,10 +159,8 @@ void charybdis_set_pointer_dragscroll_enabled(bool enable) { maybe_update_pointing_device_cpi(&g_charybdis_config); } -void pointing_device_init_kb(void) { maybe_update_pointing_device_cpi(&g_charybdis_config); } - # ifndef CONSTRAIN_HID -# define CONSTRAIN_HID(value) ((value) < -127 ? -127 : ((value) > 127 ? 127 : (value))) +# define CONSTRAIN_HID(value) ((value) < XY_REPORT_MIN ? XY_REPORT_MIN : ((value) > XY_REPORT_MAX ? XY_REPORT_MAX : (value))) # endif // !CONSTRAIN_HID /** @@ -339,6 +337,7 @@ void charybdis_config_sync_handler(uint8_t initiator2target_buffer_size, const v } void keyboard_post_init_kb(void) { + maybe_update_pointing_device_cpi(&g_charybdis_config); transaction_register_rpc(RPC_ID_KB_CONFIG_SYNC, charybdis_config_sync_handler); keyboard_post_init_user(); |