X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Scan%2Fmatrix%2Fscan_loop.h;fp=Scan%2Fmatrix%2Fscan_loop.h;h=3897c9cab935cf267bf61e2697aa91f4a5008148;hb=ac5f6c015dd33256e992027670264cacc4411ca9;hp=a451d664ccb38eca572f8d6d16e3dff3ed32eb9b;hpb=969b8c8bee60e74175667689fc89de03511b1bf7;p=kiibohd-controller.git diff --git a/Scan/matrix/scan_loop.h b/Scan/matrix/scan_loop.h index a451d66..3897c9c 100644 --- a/Scan/matrix/scan_loop.h +++ b/Scan/matrix/scan_loop.h @@ -37,14 +37,19 @@ // ----- Defines ----- +#define KEYBOARD_BUFFER 24 // Max number of key signals to buffer + // ----- Variables ----- // NOTE: Highest Bit: Valid keypress (0x80 is valid keypress) // Other Bits: Pressed state sample counter -extern uint8_t KeyIndex_Array [KEYBOARD_SIZE + 1]; - static const uint8_t KeyIndex_Size = KEYBOARD_SIZE; +extern uint8_t KeyIndex_Array [KEYBOARD_SIZE + 1]; + static const uint8_t KeyIndex_Size = KEYBOARD_SIZE; + +extern volatile uint8_t KeyIndex_Buffer[KEYBOARD_BUFFER]; +extern volatile uint8_t KeyIndex_BufferUsed;