Caps Word and Layer Lock for vial-qmk.

* Enable Caps Word and Layer Lock. Set CAPS_WORD_INVERT_ON_SHIFT.
* Use the last bits of dynamic_vial_get_number_of_entries to indicate
  optionally supported features.
* Vial protocol version was already bumped to 6, matching the bump on
  made on the GUI side corresponding to this change.
This commit is contained in:
Pascal Getreuer 2025-06-24 17:05:12 -07:00
parent e6dee240f9
commit 2c2a2dfd7a
2 changed files with 13 additions and 1 deletions

View file

@ -224,6 +224,16 @@ void vial_handle_cmd(uint8_t *msg, uint8_t length) {
msg[0] = VIAL_TAP_DANCE_ENTRIES;
msg[1] = VIAL_COMBO_ENTRIES;
msg[2] = VIAL_KEY_OVERRIDE_ENTRIES;
// The last byte of msg indicates optionally supported features.
msg[length - 1] = (0
#ifdef CAPS_WORD_ENABLE
| (1 << 0) // Bit 0: Caps Word.
#endif
#ifdef LAYER_LOCK_ENABLE
| (1 << 1) // Bit 1: Layer Lock.
#endif
);
break;
}
#ifdef VIAL_TAP_DANCE_ENABLE