summaryrefslogtreecommitdiffhomepage
path: root/examples/text/text_input_box.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/text/text_input_box.c')
-rw-r--r--examples/text/text_input_box.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/text/text_input_box.c b/examples/text/text_input_box.c
index 650ca207..b68f762c 100644
--- a/examples/text/text_input_box.c
+++ b/examples/text/text_input_box.c
@@ -43,6 +43,9 @@ int main(void)
if (mouseOnText)
{
+ // Set the window's cursor to the I-Beam
+ SetMouseCursor(MOUSE_CURSOR_IBEAM);
+
// Get pressed key (character) on the queue
int key = GetKeyPressed();
@@ -67,6 +70,10 @@ int main(void)
if (letterCount < 0) letterCount = 0;
}
}
+ else if (GetMouseCursor() != MOUSE_CURSOR_DEFAULT)
+ {
+ SetMouseCursor(MOUSE_CURSOR_DEFAULT);
+ }
if (mouseOnText) framesCounter++;
else framesCounter = 0;