mirror of
https://github.com/Not-Nik/raylib-zig.git
synced 2025-09-09 12:07:27 +00:00
Lock the cursor to the window for first person camera
This commit is contained in:
parent
f8735a8cc7
commit
4edb34888a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user