From c9d275b0bd1bb0ebb78680f42ee0a4b322e0d1e8 Mon Sep 17 00:00:00 2001 From: Thibault Leclercq Date: Fri, 11 Jul 2025 15:31:00 +0200 Subject: [PATCH 1/2] fix while condition in raylib example --- examples/raylib.b | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/raylib.b b/examples/raylib.b index 7831462a..69540131 100644 --- a/examples/raylib.b +++ b/examples/raylib.b @@ -77,7 +77,7 @@ main() { InitWindow(800, 600, "Hello, from B"); SetTargetFPS(60); - while (!WindowShouldClose()) { + while (!(WindowShouldClose() & 1)) { if (IsKeyPressed(32)) { paused = !paused; } From e80ab1e55ac01eb47c38e4e7d7ae3595a8d4fa4b Mon Sep 17 00:00:00 2001 From: Thibault Leclercq Date: Fri, 11 Jul 2025 16:58:40 +0200 Subject: [PATCH 2/2] also preventively fix IsKeyPressed check --- examples/raylib.b | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/raylib.b b/examples/raylib.b index 69540131..6481fd1c 100644 --- a/examples/raylib.b +++ b/examples/raylib.b @@ -78,7 +78,7 @@ main() { InitWindow(800, 600, "Hello, from B"); SetTargetFPS(60); while (!(WindowShouldClose() & 1)) { - if (IsKeyPressed(32)) { + if (IsKeyPressed(32) & 1) { paused = !paused; }