diff options
Diffstat (limited to '')
-rw-r--r-- | test-visual.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test-visual.c b/test-visual.c index 316299c..9743006 100644 --- a/test-visual.c +++ b/test-visual.c @@ -90,7 +90,7 @@ main(int argc, char *argv[]) return 1; } for (i = 0; i < gamepad.nbuttons; i++) { - button_names[i] = libgamepad_get_button_name(gamepad.buttons[i]); + button_names[i] = libgamepad_get_button_name(NULL, gamepad.buttons[i]); len = strlen(button_names[i]); max_button_name_len = max_button_name_len > len ? max_button_name_len : len; } @@ -106,7 +106,7 @@ main(int argc, char *argv[]) return 1; } for (i = 0; i < gamepad.nabsolute_axes; i++) { - len = strlen(libgamepad_get_absolute_axis_name(gamepad.absolute_axes[i])); + len = strlen(libgamepad_get_absolute_axis_name(NULL, gamepad.absolute_axes[i])); max_abs_axis_name_len = max_abs_axis_name_len > len ? max_abs_axis_name_len : len; absinfo = libgamepad_get_absolute_axis_info(&gamepad, gamepad.absolute_axes[i]); assert(absinfo); @@ -144,7 +144,7 @@ main(int argc, char *argv[]) printf("\033[%zuH", button_rows + 1); for (i = 0; i < gamepad.nabsolute_axes; i++) { printf("\n%-*s ¿\033[7m%s?", (int)max_abs_axis_name_len, - libgamepad_get_absolute_axis_name(gamepad.absolute_axes[i]), + libgamepad_get_absolute_axis_name(NULL, gamepad.absolute_axes[i]), draw_axis(buffer, &abs_axes[i], axis_len)); } |