0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-20 06:58:39 +03:00

Hold down keys 0-9 to bypass F-key

This commit is contained in:
OneOfEleven
2023-09-14 19:38:28 +01:00
parent 84087c3d13
commit 5c664164b2
19 changed files with 294 additions and 221 deletions

View File

@ -15,18 +15,20 @@
*/
#include <string.h>
#include "ui/inputbox.h"
char gInputBox[8];
char gInputBox[8];
uint8_t gInputBoxIndex;
void INPUTBOX_Append(char Digit)
{
if (gInputBoxIndex == 0) {
if (gInputBoxIndex == 0)
memset(gInputBox, 10, sizeof(gInputBox));
} else if (gInputBoxIndex >= sizeof(gInputBox)) {
else
if (gInputBoxIndex >= sizeof(gInputBox))
return;
}
gInputBox[gInputBoxIndex++] = Digit;
}