The layer keys can now also wake up the computer
This commit is contained in:
@@ -453,7 +453,7 @@ void UpdateUsbReports(void)
|
||||
IsUsbMouseReportSent = false;
|
||||
}
|
||||
|
||||
if ((!IsUsbBasicKeyboardReportSent || !IsUsbMediaKeyboardReportSent || !IsUsbSystemKeyboardReportSent || !IsUsbMouseReportSent) && IsComputerSleeping())
|
||||
if ((previousLayer != LayerId_Base || !IsUsbBasicKeyboardReportSent || !IsUsbMediaKeyboardReportSent || !IsUsbSystemKeyboardReportSent || !IsUsbMouseReportSent) && IsComputerSleeping())
|
||||
WakeupComputer(true); // Wake up the computer if any key is pressed and the computer is sleeping
|
||||
|
||||
Timer_SetCurrentTime(&lastUsbUpdateTime);
|
||||
|
||||
Reference in New Issue
Block a user