Mercurial > louis > kiibohd-controller
diff Output/pjrcUSB/output_com.c @ 201:326f75709d10
Fixing release state for keys
- Layers were not disabling because function was only called on press/hold
- Disabled layer shift function on key hold
- Fixed the press/hold/release states for other layer capabilities and USB code send
author | Jacob Alexander <jacob.alexander@virtualinstruments.com> |
---|---|
date | Wed, 10 Sep 2014 20:53:30 -0700 |
parents | 58cfcb7bac88 |
children | 2794931a4d30 |
line wrap: on
line diff
--- a/Output/pjrcUSB/output_com.c Sun Sep 07 21:10:49 2014 -0700 +++ b/Output/pjrcUSB/output_com.c Wed Sep 10 20:53:30 2014 -0700 @@ -110,6 +110,11 @@ return; } + // TODO Analog inputs + // Only send keypresses if press or hold state + if ( stateType == 0x00 && state == 0x03 ) // Release state + return; + // Get the keycode from arguments uint8_t key = args[0];