mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 03:18:14 +00:00
Format tweaks
This commit is contained in:
11
src/rcore.c
11
src/rcore.c
@@ -1589,8 +1589,8 @@ int GetFPS(void)
|
|||||||
average = 0;
|
average = 0;
|
||||||
last = 0;
|
last = 0;
|
||||||
index = 0;
|
index = 0;
|
||||||
for (int i = 0; i < FPS_CAPTURE_FRAMES_COUNT; i++)
|
|
||||||
history[i] = 0;
|
for (int i = 0; i < FPS_CAPTURE_FRAMES_COUNT; i++) history[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fpsFrame == 0) return 0;
|
if (fpsFrame == 0) return 0;
|
||||||
@@ -2583,8 +2583,11 @@ void PlayAutomationEvent(AutomationEvent event)
|
|||||||
case INPUT_KEY_UP: CORE.Input.Keyboard.currentKeyState[event.params[0]] = false; break; // param[0]: key
|
case INPUT_KEY_UP: CORE.Input.Keyboard.currentKeyState[event.params[0]] = false; break; // param[0]: key
|
||||||
case INPUT_KEY_DOWN: { // param[0]: key
|
case INPUT_KEY_DOWN: { // param[0]: key
|
||||||
CORE.Input.Keyboard.currentKeyState[event.params[0]] = true;
|
CORE.Input.Keyboard.currentKeyState[event.params[0]] = true;
|
||||||
if (CORE.Input.Keyboard.previousKeyState[event.params[0]] == false) {
|
|
||||||
if (CORE.Input.Keyboard.keyPressedQueueCount < MAX_KEY_PRESSED_QUEUE) {
|
if (CORE.Input.Keyboard.previousKeyState[event.params[0]] == false)
|
||||||
|
{
|
||||||
|
if (CORE.Input.Keyboard.keyPressedQueueCount < MAX_KEY_PRESSED_QUEUE)
|
||||||
|
{
|
||||||
// Add character to the queue
|
// Add character to the queue
|
||||||
CORE.Input.Keyboard.keyPressedQueue[CORE.Input.Keyboard.keyPressedQueueCount] = event.params[0];
|
CORE.Input.Keyboard.keyPressedQueue[CORE.Input.Keyboard.keyPressedQueueCount] = event.params[0];
|
||||||
CORE.Input.Keyboard.keyPressedQueueCount++;
|
CORE.Input.Keyboard.keyPressedQueueCount++;
|
||||||
|
Reference in New Issue
Block a user