rename input character functions
This commit is contained in:
parent
bbc3480ad0
commit
ec813758bb
1 changed files with 5 additions and 5 deletions
|
|
@ -2216,11 +2216,11 @@ int GetKeyPressed(void)
|
|||
return lastKeyPressed;
|
||||
}
|
||||
|
||||
bool HasWaitingInputCharacter()
|
||||
bool IsCharAvailable()
|
||||
{
|
||||
return 0 < inputCharacterQueueCount;
|
||||
}
|
||||
unsigned int PullNextInputCharacter()
|
||||
unsigned int GetNextChar()
|
||||
{
|
||||
if (inputCharacterQueueCount <= 0)
|
||||
{
|
||||
|
|
@ -3953,7 +3953,7 @@ static void CharCallback(GLFWwindow *window, unsigned int key)
|
|||
static const int CAPACITY = sizeof(inputCharacterQueue) / sizeof(inputCharacterQueue[0]);
|
||||
if (CAPACITY <= inputCharacterQueueCount)
|
||||
{
|
||||
PullNextInputCharacter();
|
||||
GetNextChar();
|
||||
}
|
||||
|
||||
// add to queue
|
||||
|
|
|
|||
Loading…
Reference in a new issue