瀏覽代碼

Fix camera initial position (#4657)

pull/4661/head
Asdqwe 1 周之前
committed by GitHub
父節點
當前提交
ad035edfac
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      src/platforms/rcore_desktop_glfw.c

+ 3
- 0
src/platforms/rcore_desktop_glfw.c 查看文件

@ -1017,6 +1017,9 @@ void EnableCursor(void)
// Disables cursor (lock cursor)
void DisableCursor(void)
{
// Reset mouse position within the window area before disabling cursor
SetMousePosition(CORE.Window.screen.width, CORE.Window.screen.height);
glfwSetInputMode(platform.handle, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
// Set cursor position in the middle

Loading…
取消
儲存