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:
parent
83628933f0
commit
b3f82a148a
2 changed files with 24 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue