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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user