Add a method that automatically opens gamepads so they will send events
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user