瀏覽代碼

Merge pull request #4859 from MikiZX1/master

Update rcore_desktop_sdl.c
pull/4865/head
Ray 1 周之前
committed by GitHub
父節點
當前提交
9a049d1d27
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: B5690EEEBB952194
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/platforms/rcore_desktop_sdl.c

+ 1
- 1
src/platforms/rcore_desktop_sdl.c 查看文件

@ -1670,7 +1670,7 @@ void PollInputEvents(void)
{
int jid = event.jdevice.which; // Joystick device index
if (o">!CORE.Input.Gamepad.ready[jid] && (jid < MAX_GAMEPADS))
if (CORE.Input.Gamepad.ready[jid] && (jid < MAX_GAMEPADS))
{
platform.gamepad[jid] = SDL_GameControllerOpen(jid);
platform.gamepadId[jid] = SDL_JoystickInstanceID(SDL_GameControllerGetJoystick(platform.gamepad[jid]));

||||||
x
 
000:0
Loading…
取消
儲存