From 36e867e3508a9b2cd8d7ef4ec6a736dca49bf16d Mon Sep 17 00:00:00 2001 From: Nickolas McDonald <43690021+n77y@users.noreply.github.com> Date: Sat, 19 Aug 2023 21:07:33 -0400 Subject: [PATCH] change docs --- src/raylib.h | 2 +- src/rcore.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raylib.h b/src/raylib.h index 7ae0e817c..c345e5976 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1118,7 +1118,7 @@ RLAPI bool IsKeyPressed(int key); // Check if a key RLAPI bool IsKeyDown(int key); // Check if a key is being pressed RLAPI bool IsKeyReleased(int key); // Check if a key has been released once RLAPI bool IsKeyUp(int key); // Check if a key is NOT being pressed -RLAPI bool IsKeyRepeated(int key); // Check if a key is being repeated (when held down) +RLAPI bool IsKeyRepeated(int key); // Check if a key has been repeated RLAPI void SetExitKey(int key); // Set a custom key to exit program (default is ESC) RLAPI int GetKeyPressed(void); // Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty RLAPI int GetCharPressed(void); // Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty diff --git a/src/rcore.c b/src/rcore.c index fb5b073f4..ddd32de4c 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -3772,7 +3772,7 @@ bool IsKeyUp(int key) return KEY_SAFE(key) && (CORE.Input.Keyboard.currentKeyState[key] == 0); } -// Check if a key is being repeated (when held down) +// Check if a key has been repeated bool IsKeyRepeated(int key) { return KEY_SAFE(key) && (CORE.Input.Keyboard.repeatKeyState[key] == 1);