mirror of
https://github.com/Not-Nik/raylib-zig.git
synced 2025-09-09 12:07:27 +00:00
Merge pull request #73 from tumberino/patch-1
Lock the cursor to the window for first person camera
This commit is contained in:
commit
05fca88a02
@ -40,6 +40,7 @@ pub fn main() anyerror!void {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rl.disableCursor(); // Limit cursor to relative movement inside the window
|
||||||
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
|
||||||
//--------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user