From 4d483e7896beebb5ad5f533adf9d52f99a61a9d4 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Fri, 15 Jun 2018 14:03:59 +0200 Subject: [PATCH] Limit the update frequency for reading the keyboard --- right/src/usb_report_updater.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/right/src/usb_report_updater.c b/right/src/usb_report_updater.c index 5fd21ff..36b3ae1 100644 --- a/right/src/usb_report_updater.c +++ b/right/src/usb_report_updater.c @@ -396,19 +396,10 @@ void UpdateUsbReports(void) { UsbReportUpdateCounter++; - // Process the key inputs at a constant rate when moving the mouse, so the mouse speed is consistent. - bool hasActiveMouseState = false; - for (uint8_t i=0; i