From 2cbe468fb063f4ff7b77abcea2afd3d54a50f391 Mon Sep 17 00:00:00 2001 From: someone_existing <66226290+someone-existing@users.noreply.github.com> Date: Fri, 14 Aug 2020 20:13:53 +0200 Subject: [PATCH] Small change to text input box example You don't have to spam backspace anymore. --- examples/text/text_input_box.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/text/text_input_box.c b/examples/text/text_input_box.c index 981ae80de..439cf83f5 100644 --- a/examples/text/text_input_box.c +++ b/examples/text/text_input_box.c @@ -59,7 +59,7 @@ int main(void) key = GetKeyPressed(); // Check next character in the queue } - if (IsKeyPressed(KEY_BACKSPACE)) + if (IsKeyDown(KEY_BACKSPACE)) { letterCount--; name[letterCount] = '\0'; @@ -120,4 +120,4 @@ bool IsAnyKeyPressed() if ((key >= 32) && (key <= 126)) keyPressed = true; return keyPressed; -} \ No newline at end of file +}