mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
libsuperderpy_init: Make "connected joysticks" log better when there's none
This commit is contained in:
parent
1ed4c73025
commit
8a9e838c9f
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ SYMBOL_EXPORT struct Game* libsuperderpy_init(int argc, char** argv, const char*
|
|||
PrintConsole(game, "NPOT bitmaps: %d", al_get_display_option(game->display, ALLEGRO_SUPPORT_NPOT_BITMAP));
|
||||
PrintConsole(game, "Separate alpha blender: %d", al_get_display_option(game->display, ALLEGRO_SUPPORT_SEPARATE_ALPHA));
|
||||
|
||||
PrintConsole(game, "Connected joysticks:");
|
||||
PrintConsole(game, "Connected joysticks:%s", al_get_num_joysticks() ? "" : " [none]");
|
||||
for (int i = 0; i < al_get_num_joysticks(); i++) {
|
||||
ALLEGRO_JOYSTICK* joystick = al_get_joystick(i);
|
||||
PrintConsole(game, " - %d: %s", i, al_get_joystick_name(joystick));
|
||||
|
|
Loading…
Reference in a new issue