[Keymap] Fix Drashna Keymap issues missed before Develop merge (#14271)

This commit is contained in:
Drashna Jaelre
2021-09-01 21:08:58 -07:00
committed by GitHub
parent c1e5c920a9
commit 37aef4ebe1
9 changed files with 132 additions and 114 deletions

View File

@@ -46,15 +46,15 @@ __attribute__((weak)) kb_pointer_data_t process_mouse(void) {
kb_pointer_data_t temp_data = {.mouse_x = 0, .mouse_y = 0};
report_pmw_t data = pmw_read_burst();
if (data.isOnSurface && data.isMotion) {
// Reset timer if stopped moving
if (!data.isMotion) {
if (MotionStart != 0) MotionStart = 0;
return temp_data;
}
if (data.isOnSurface) {
// Set timer if new motion
if ((MotionStart == 0) && data.isMotion) {
if (MotionStart == 0) {
if (debug_mouse) dprintf("Starting motion.\n");
MotionStart = timer_read();
}
@@ -197,3 +197,7 @@ void matrix_scan_kb(void) {
matrix_scan_sub_kb();
matrix_scan_user();
}
#ifdef POINTING_DEVICE_ENABLE
void matrix_power_up(void) { pointing_device_task(); }
#endif