summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2020-12-18 19:51:23 +0100
committerRay <[email protected]>2020-12-18 19:51:23 +0100
commit3322350c16b6d85c0f4c22c1df2645e09835697e (patch)
treed59cdbe60bc7c25d2859fffcd547ad8d16665a71
parentd0d7fce38e51630fa663ebd707ca117b75a8a952 (diff)
downloadraylib.com-3322350c16b6d85c0f4c22c1df2645e09835697e.tar.gz
raylib.com-3322350c16b6d85c0f4c22c1df2645e09835697e.zip
Update text_input_box.c
-rw-r--r--examples/web/text/text_input_box.c4
1 files changed, 2 insertions, 2 deletions
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;