mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
First person camera now works on web
This commit is contained in:
@ -88,6 +88,9 @@ void UpdateDrawFrame(void)
|
||||
// Update
|
||||
//----------------------------------------------------------------------------------
|
||||
UpdateCamera(&camera); // Update camera and player position
|
||||
|
||||
// Lock mouse cursor if mouse click on canvas
|
||||
if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) DisableCursor();
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
// Draw
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user