Przeglądaj źródła

USB Macro Output sequences now working!

- Tested both with Boot and NKRO modes
simple
Jacob Alexander 9 lat temu
rodzic
commit
2be0d1393b
2 zmienionych plików z 12 dodań i 0 usunięć
  1. 11
    0
      Output/pjrcUSB/output_com.c
  2. 1
    0
      Output/pjrcUSB/output_com.h

+ 11
- 0
Output/pjrcUSB/output_com.c Wyświetl plik



USBKeys_Changed |= USBKeyChangeState_TertiaryKeys; USBKeys_Changed |= USBKeyChangeState_TertiaryKeys;
} }
// Received 0x00
// This is a special USB Code that internally indicates a "break"
// It is used to send "nothing" in order to break up sequences of USB Codes
else if ( key == 0x00 )
{
USBKeys_Changed |= USBKeyChangeState_All;

// Also flush out buffers just in case
Output_flushBuffers();
break;
}
// Invalid key // Invalid key
else else
{ {

+ 1
- 0
Output/pjrcUSB/output_com.h Wyświetl plik

USBKeyChangeState_TertiaryKeys = 0x08, USBKeyChangeState_TertiaryKeys = 0x08,
USBKeyChangeState_System = 0x10, USBKeyChangeState_System = 0x10,
USBKeyChangeState_Consumer = 0x20, USBKeyChangeState_Consumer = 0x20,
USBKeyChangeState_All = 0x3F,
} USBKeyChangeState; } USBKeyChangeState;