Readded the function
This commit is contained in:
Alexander Buhl 2020-12-13 14:58:31 +01:00 committed by GitHub
parent 2fa083b9de
commit e3e539f1c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,3 +112,15 @@ int main(void)
return 0; return 0;
} }
// Check if any key is pressed
// NOTE: We limit keys check to keys between 32 (KEY_SPACE) and 126
bool IsAnyKeyPressed()
{
bool keyPressed = false;
int key = GetKeyPressed();
if ((key >= 32) && (key <= 126)) keyPressed = true;
return keyPressed;
}