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
This commit is contained in:
Jacob Alexander 2014-09-10 20:53:30 -07:00
parent 2a6c2a9c78
commit c169097ccf
2 changed files with 32 additions and 2 deletions

View file

@ -110,6 +110,11 @@ void Output_usbCodeSend_capability( uint8_t state, uint8_t stateType, uint8_t *a
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];