mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-19 22:58:04 +03:00
Renamed lots more
This commit is contained in:
@ -18,18 +18,18 @@
|
||||
|
||||
#include "ui/inputbox.h"
|
||||
|
||||
char gInputBox[8];
|
||||
uint8_t gInputBoxIndex;
|
||||
char g_input_box[8];
|
||||
uint8_t g_input_box_index;
|
||||
|
||||
void INPUTBOX_Append(const key_code_t Digit)
|
||||
{
|
||||
if (gInputBoxIndex >= sizeof(gInputBox))
|
||||
if (g_input_box_index >= sizeof(g_input_box))
|
||||
return;
|
||||
|
||||
if (gInputBoxIndex == 0)
|
||||
memset(gInputBox, 10, sizeof(gInputBox));
|
||||
if (g_input_box_index == 0)
|
||||
memset(g_input_box, 10, sizeof(g_input_box));
|
||||
|
||||
if (Digit >= KEY_0 && Digit != KEY_INVALID)
|
||||
gInputBox[gInputBoxIndex++] = (char)(Digit - KEY_0);
|
||||
g_input_box[g_input_box_index++] = (char)(Digit - KEY_0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user