소스 검색

Fix camera initial position (#4657)

pull/4661/head
Asdqwe 9 달 전
committed by GitHub
부모
커밋
ad035edfac
No known key found for this signature in database 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

불러오는 중...
취소
저장