From 3322350c16b6d85c0f4c22c1df2645e09835697e Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 18 Dec 2020 19:51:23 +0100 Subject: Update text_input_box.c --- examples/web/text/text_input_box.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/web/text/text_input_box.c b/examples/web/text/text_input_box.c index f7da329..5ab1457 100644 --- a/examples/web/text/text_input_box.c +++ b/examples/web/text/text_input_box.c @@ -80,7 +80,7 @@ void UpdateDrawFrame(void) if (mouseOnText) { - int key = GetKeyPressed(); + int key = GetCharPressed(); // NOTE: Only allow keys in range [32..125] if ((key >= 32) && (key <= 125) && (letterCount < MAX_INPUT_CHARS)) @@ -137,7 +137,7 @@ void UpdateDrawFrame(void) bool IsAnyKeyPressed() { bool keyPressed = false; - int key = GetKeyPressed(); + int key = GetCharPressed(); if ((key >= 32) && (key <= 126)) keyPressed = true; -- cgit v1.2.3