Lock the cursor to the window for first person camera

This commit is contained in:
James 'JT' Tumber 2024-03-22 16:14:30 +00:00 committed by GitHub
parent f8735a8cc7
commit 4edb34888a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,6 +41,7 @@ pub fn main() anyerror!void {
} }
rl.setTargetFPS(60); // Set our game to run at 60 frames-per-second rl.setTargetFPS(60); // Set our game to run at 60 frames-per-second
rl.disableCursor(); // Lock the cursor to the window
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
// Main game loop // Main game loop