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:
parent
2a6c2a9c78
commit
c169097ccf
2 changed files with 32 additions and 2 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue