From e3e539f1c8235b0a6f2907889d721c9bd78e711b Mon Sep 17 00:00:00 2001 From: Alexander Buhl <63983202+Buhlean@users.noreply.github.com> Date: Sun, 13 Dec 2020 14:58:31 +0100 Subject: [PATCH] Fixed #1455 Readded the function --- examples/text/text_input_box.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/examples/text/text_input_box.c b/examples/text/text_input_box.c index 454903820..0f35a581f 100644 --- a/examples/text/text_input_box.c +++ b/examples/text/text_input_box.c @@ -112,3 +112,15 @@ int main(void) return 0; } + +// Check if any key is pressed +// NOTE: We limit keys check to keys between 32 (KEY_SPACE) and 126 +bool IsAnyKeyPressed() +{ + bool keyPressed = false; + int key = GetKeyPressed(); + + if ((key >= 32) && (key <= 126)) keyPressed = true; + + return keyPressed; +}