Fix acceleration toggle on key press to trigger only when key is actually pressed

This commit is contained in:
Sadek Baroudi 2026-03-26 09:22:02 -07:00 committed by GitHub
parent 3c768c5528
commit 90ae8ae909
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -508,7 +508,9 @@ bool fp_process_record_pointing(uint16_t keycode, keyrecord_t *record) {
switch (keycode) { switch (keycode) {
case FP_ACCEL_TOG: case FP_ACCEL_TOG:
# ifdef FP_POINTING_ACCELERATION_ENABLE # ifdef FP_POINTING_ACCELERATION_ENABLE
if (record->event.pressed) {
acceleration_enabled = !acceleration_enabled; acceleration_enabled = !acceleration_enabled;
}
# endif # endif
break; break;
case FP_SCROLL_MOMENT: case FP_SCROLL_MOMENT: