mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-17 23:31:47 +00:00
Add IsKeyPressedRepeat
(desktop only) (#3245)
Since the key pressed are handle by comparing current vs previous state (ie frame), a special way is needed to handle key repeats.
This commit is contained in:

committed by
GitHub

parent
83628933f0
commit
b3f82a148a
@@ -1115,6 +1115,7 @@ RLAPI unsigned char *DecodeDataBase64(const unsigned char *data, int *outputSize
|
||||
|
||||
// Input-related functions: keyboard
|
||||
RLAPI bool IsKeyPressed(int key); // Check if a key has been pressed once
|
||||
RLAPI bool IsKeyPressedRepeat(int key); // Check if a key has been pressed again (Only PLATFORM_DESKTOP)
|
||||
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
|
||||
|
Reference in New Issue
Block a user