Lock the cursor to the window for first person camera
This commit is contained in:
parent
f8735a8cc7
commit
4edb34888a
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue