diff options
Diffstat (limited to 'examples/text')
| -rw-r--r-- | examples/text/text_input_box.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/text/text_input_box.c b/examples/text/text_input_box.c index 0f35a581..1b35e21d 100644 --- a/examples/text/text_input_box.c +++ b/examples/text/text_input_box.c @@ -2,7 +2,7 @@ * * raylib [text] example - Input Box * -* This example has been created using raylib 1.7 (www.raylib.com) +* This example has been created using raylib 3.5 (www.raylib.com) * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) * * Copyright (c) 2017 Ramon Santamaria (@raysan5) @@ -46,8 +46,8 @@ int main(void) // Set the window's cursor to the I-Beam SetMouseCursor(MOUSE_CURSOR_IBEAM); - // Get pressed key (character) on the queue - int key = GetKeyPressed(); + // Get char pressed (unicode character) on the queue + int key = GetCharPressed(); // Check if more characters have been pressed on the same frame while (key > 0) @@ -59,7 +59,7 @@ int main(void) letterCount++; } - key = GetKeyPressed(); // Check next character in the queue + key = GetCharPressed(); // Check next character in the queue } if (IsKeyPressed(KEY_BACKSPACE)) |
