|
|
|
|
|
|
|
|
while ( USBKeys_Changed ) |
|
|
while ( USBKeys_Changed ) |
|
|
usb_keyboard_send(); |
|
|
usb_keyboard_send(); |
|
|
|
|
|
|
|
|
// Clear modifiers and keys |
|
|
|
|
|
USBKeys_Modifiers = 0; |
|
|
|
|
|
USBKeys_Sent = 0; |
|
|
|
|
|
|
|
|
// Clear keys sent |
|
|
|
|
|
USBKeys_Sent = 0; |
|
|
|
|
|
|
|
|
// Signal Scan Module we are finished |
|
|
// Signal Scan Module we are finished |
|
|
switch ( USBKeys_Protocol ) |
|
|
switch ( USBKeys_Protocol ) |
|
|
{ |
|
|
{ |
|
|
case 0: // Boot Mode |
|
|
case 0: // Boot Mode |
|
|
|
|
|
// Clear modifiers only in boot mode |
|
|
|
|
|
USBKeys_Modifiers = 0; |
|
|
Scan_finishedWithOutput( USBKeys_Sent <= USB_BOOT_MAX_KEYS ? USBKeys_Sent : USB_BOOT_MAX_KEYS ); |
|
|
Scan_finishedWithOutput( USBKeys_Sent <= USB_BOOT_MAX_KEYS ? USBKeys_Sent : USB_BOOT_MAX_KEYS ); |
|
|
break; |
|
|
break; |
|
|
case 1: // NKRO Mode |
|
|
case 1: // NKRO Mode |