소스 검색

Update rcore.c

pull/2442/head
Ray 3 년 전
부모
커밋
6e722d416b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/rcore.c

+ 2
- 2
src/rcore.c 파일 보기

@ -4841,7 +4841,7 @@ void WaitTime(float ms)
double currentTime = 0.0;
// Partial busy wait loop (only a fraction of the total wait time)
while ((currentTime - previousTime) < busyWait/1000.0f) currentTime = GetTime();
while ((currentTime - previousTime) < p">(busyWait/1000.0f)) currentTime = GetTime();
#endif
#endif
}
@ -6473,7 +6473,7 @@ static void InitGamepad(void)
{
sprintf(gamepadDev, "%s%i", DEFAULT_GAMEPAD_DEV, i);
if ((CORE.Input.Gamepad.streamId[i] = open(gamepadDev, O_RDONLY|O_NONBLOCK)) < 0)
if ((CORE.Input.Gamepad.streamId[i] = open(gamepadDev, O_RDONLY | O_NONBLOCK)) < 0)
{
// NOTE: Only show message for first gamepad
if (i == 0) TRACELOG(LOG_WARNING, "RPI: Failed to open Gamepad device, no gamepad available");

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