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

@@ -115,7 +115,7 @@ akerr_ErrorContext *akgl_heap_release_actor(akgl_Actor *ptr)
if ( ptr->refcount == 0 ) {
for ( i = 0; i < AKGL_ACTOR_MAX_CHILDREN; i++ ) {
if ( ptr->children[i] != NULL ) {
CATCH_AND_RETURN(errctx, akgl_heap_release_actor(ptr->children[i]));
PASS(errctx, akgl_heap_release_actor(ptr->children[i]));
}
}
SDL_ClearProperty(AKGL_REGISTRY_ACTOR, (char *)&ptr->name);