From 0a6ebe2903f78d2cae04afd67b172139bab2502d Mon Sep 17 00:00:00 2001 From: Eric Tang Date: Wed, 25 Jul 2018 15:16:15 -0700 Subject: [PATCH] Remove the old code for detecting new keypresses --- right/src/usb_report_updater.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/right/src/usb_report_updater.c b/right/src/usb_report_updater.c index 2d82754..8d0bcc0 100644 --- a/right/src/usb_report_updater.c +++ b/right/src/usb_report_updater.c @@ -455,10 +455,6 @@ void UpdateUsbReports(void) bool HasUsbSystemKeyboardReportChanged = memcmp(ActiveUsbSystemKeyboardReport, GetInactiveUsbSystemKeyboardReport(), sizeof(usb_system_keyboard_report_t)) != 0; bool HasUsbMouseReportChanged = memcmp(ActiveUsbMouseReport, GetInactiveUsbMouseReport(), sizeof(usb_mouse_report_t)) != 0; - if (IsHostSleeping && (previousLayer != LayerId_Base || HasUsbBasicKeyboardReportChanged || HasUsbMediaKeyboardReportChanged || HasUsbSystemKeyboardReportChanged || HasUsbMouseReportChanged)) { - WakeUpHost(true); // Wake up the host if any key is pressed and the computer is sleeping. - } - if (HasUsbBasicKeyboardReportChanged) { usb_status_t status = UsbBasicKeyboardAction(); if (status == kStatus_USB_Success) {