To be used by the hardware implementations, `KEY_INDEX` tells us the index of a key, from which we can figure out the row and column as needed. The index starts at one, so that plugins that work with a list of key indexes can use zero as a sentinel. This is important, because when we initialize arrays with fewer elements than the declared array size, the remaining elements will be zero. We can use this to avoid having to explicitly add a sentinel in user-facing code. Additionally, we add `getKeyswitchStateAtPosition` to the HID facade. See its documentation in `Kaleidoscope-Hardware`. Signed-off-by: Gergely Nagy <algernon@keyboard.io>pull/336/head
parent
00e5d54bf7
commit
5388739131
Loading…
Reference in new issue