Small change to text input box example
You don't have to spam backspace anymore.
This commit is contained in:
parent
53b17765f4
commit
2cbe468fb0
|
|
@ -59,7 +59,7 @@ int main(void)
|
||||||
key = GetKeyPressed(); // Check next character in the queue
|
key = GetKeyPressed(); // Check next character in the queue
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsKeyPressed(KEY_BACKSPACE))
|
if (IsKeyDown(KEY_BACKSPACE))
|
||||||
{
|
{
|
||||||
letterCount--;
|
letterCount--;
|
||||||
name[letterCount] = '\0';
|
name[letterCount] = '\0';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user