Mercurial > louis > kiibohd-controller
changeset 244:68d2e5c96e72
USB Macro Output sequences now working!
- Tested both with Boot and NKRO modes
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Mon, 27 Oct 2014 00:26:17 -0700 |
parents | e4bb14a0168a |
children | 02cdd66d8856 |
files | Output/pjrcUSB/output_com.c Output/pjrcUSB/output_com.h |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Output/pjrcUSB/output_com.c Sun Oct 26 15:07:44 2014 -0700 +++ b/Output/pjrcUSB/output_com.c Mon Oct 27 00:26:17 2014 -0700 @@ -401,6 +401,17 @@ 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 else {
--- a/Output/pjrcUSB/output_com.h Sun Oct 26 15:07:44 2014 -0700 +++ b/Output/pjrcUSB/output_com.h Mon Oct 27 00:26:17 2014 -0700 @@ -53,6 +53,7 @@ USBKeyChangeState_TertiaryKeys = 0x08, USBKeyChangeState_System = 0x10, USBKeyChangeState_Consumer = 0x20, + USBKeyChangeState_All = 0x3F, } USBKeyChangeState;