Add a method that automatically opens gamepads so they will send events

This commit is contained in:
2026-05-21 21:43:51 -04:00
parent f695a035c8
commit e3edd5b855
6 changed files with 35 additions and 4 deletions

View File

@@ -85,6 +85,8 @@ akerr_ErrorContext AKERR_NOIGNORE *akgl_game_init()
FAIL_ZERO_RETURN(errctx, 0, AKGL_ERR_SDL, "%s", SDL_GetError());
}
}
PASS(errctx, akgl_controller_open_gamepads());
SUCCEED_RETURN(errctx);
}
@@ -137,7 +139,7 @@ akerr_ErrorContext AKERR_NOIGNORE *akgl_game_init_screen()
camera.y = 0;
camera.w = screenwidth;
camera.h = screenheight;
SUCCEED(e);
SUCCEED_RETURN(e);
}
void akgl_game_updateFPS()