From 4edb34888a31e346a7153abb21bca300f72240fc Mon Sep 17 00:00:00 2001 From: James 'JT' Tumber <105913324+tumberino@users.noreply.github.com> Date: Fri, 22 Mar 2024 16:14:30 +0000 Subject: [PATCH] Lock the cursor to the window for first person camera --- examples/core/3d_camera_first_person.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/core/3d_camera_first_person.zig b/examples/core/3d_camera_first_person.zig index c049412..429400d 100644 --- a/examples/core/3d_camera_first_person.zig +++ b/examples/core/3d_camera_first_person.zig @@ -41,6 +41,7 @@ pub fn main() anyerror!void { } rl.setTargetFPS(60); // Set our game to run at 60 frames-per-second + rl.disableCursor(); // Lock the cursor to the window //-------------------------------------------------------------------------------------- // Main game loop