added USB_EXTRA feature to HHKB/V-USB
This commit is contained in:
parent
068c31a7ba
commit
74f7e19863
7 changed files with 166 additions and 78 deletions
|
@ -122,11 +122,15 @@ uint8_t command_proc(void)
|
|||
#endif
|
||||
#ifdef USB_EXTRA_ENABLE
|
||||
case KB_ESC:
|
||||
#ifdef HOST_PJRC
|
||||
if (suspend && remote_wakeup) {
|
||||
usb_remote_wakeup();
|
||||
} else {
|
||||
usb_extra_system_send(SYSTEM_POWER_DOWN);
|
||||
host_system_send(SYSTEM_POWER_DOWN);
|
||||
}
|
||||
#else
|
||||
host_system_send(SYSTEM_POWER_DOWN);
|
||||
#endif
|
||||
break;
|
||||
#endif
|
||||
case KB_BSPC:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue