The keyboard can now wake up the computer from sleep

This commit is contained in:
Kristian Sloth Lauszus
2018-03-11 19:00:46 +01:00
parent 6e2eca7829
commit 3ab2ac18fc
3 changed files with 56 additions and 31 deletions
+3
View File
@@ -453,5 +453,8 @@ void UpdateUsbReports(void)
IsUsbMouseReportSent = false;
}
if ((!IsUsbBasicKeyboardReportSent || !IsUsbMediaKeyboardReportSent || !IsUsbSystemKeyboardReportSent || !IsUsbMouseReportSent) && IsComputerSleeping())
WakeupComputer(true); // Wake up the computer if any key is pressed and the computer is sleeping
Timer_SetCurrentTime(&lastUsbUpdateTime);
}