i have no brain and i must rename

This commit is contained in:
Such Meme, Many Skill
2020-05-02 17:31:00 +02:00
parent b273b1e5ab
commit f9cf371cf9
6 changed files with 74 additions and 11 deletions

View File

@@ -98,11 +98,17 @@ char *utils_InputText(char *start, int maxLen){
if (input->buttons & (KEY_A | KEY_B))
break;
if (input->buttons & (KEY_LDOWN | KEY_RDOWN) && buff[currentPos] < 126)
buff[currentPos]++;
if (input->buttons & (KEY_LDOWN | KEY_RDOWN) && buff[currentPos] < 126){
temp = ++buff[currentPos];
while (temp == '\\' || temp == '/' || temp == ':' || temp == '*' || temp == '?' || temp == '"' || temp == '<' || temp == '>' || temp == '|')
temp = ++buff[currentPos];
}
if (input->buttons & (KEY_LUP | KEY_RUP) && buff[currentPos] > 32)
buff[currentPos]--;
if (input->buttons & (KEY_LUP | KEY_RUP) && buff[currentPos] > 32){
temp = --buff[currentPos];
while (temp == '\\' || temp == '/' || temp == ':' || temp == '*' || temp == '?' || temp == '"' || temp == '<' || temp == '>' || temp == '|')
temp = --buff[currentPos];
}
if (input->Lleft && currentPos > 0)
currentPos--;