summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-11-10 19:22:22 +0100
committerRay <[email protected]>2023-11-10 19:22:22 +0100
commit16b79f2c707d53836cdf67d7d9314746c95a4b10 (patch)
tree0fc1b82bad16ed26da059ff12d5fde7dacb7e10b /src
parenta92c34d83c69022f170025299120a7049b548c19 (diff)
downloadraylib-16b79f2c707d53836cdf67d7d9314746c95a4b10.tar.gz
raylib-16b79f2c707d53836cdf67d7d9314746c95a4b10.zip
Format tweaks
Diffstat (limited to 'src')
-rw-r--r--src/rcore.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/rcore.c b/src/rcore.c
index bbac2e93..85e5604a 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -1589,8 +1589,8 @@ int GetFPS(void)
average = 0;
last = 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;
@@ -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_DOWN: { // param[0]: key
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
CORE.Input.Keyboard.keyPressedQueue[CORE.Input.Keyboard.keyPressedQueueCount] = event.params[0];
CORE.Input.Keyboard.keyPressedQueueCount++;