aboutsummaryrefslogtreecommitdiffstats
path: root/test-details.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-details.c')
-rw-r--r--test-details.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test-details.c b/test-details.c
index 420e007..e834819 100644
--- a/test-details.c
+++ b/test-details.c
@@ -38,7 +38,7 @@ main(int argc, char *argv[])
assert(gamepad.buttons[i] < ELEMSOF(gamepad.button_map));
assert(gamepad.button_map[gamepad.buttons[i]] == (int16_t)i);
printf("\t%s [pressed=%i]\n",
- libgamepad_get_button_name(gamepad.buttons[i]),
+ libgamepad_get_button_name(NULL, gamepad.buttons[i]),
libgamepad_get_button_is_pressed(&gamepad, gamepad.buttons[i]));
}
n = 0;
@@ -59,10 +59,10 @@ main(int argc, char *argv[])
assert(gamepad.absolute_axis_map[gamepad.absolute_axes[i]] == (int16_t)i);
absinfo = libgamepad_get_absolute_axis_info(&gamepad, gamepad.absolute_axes[i]);
if (!absinfo) {
- printf("\t%s\n", libgamepad_get_absolute_axis_name(gamepad.absolute_axes[i]));
+ printf("\t%s\n", libgamepad_get_absolute_axis_name(NULL, gamepad.absolute_axes[i]));
} else {
printf("\t%s [value=%i, min=%i, max=%i, fuzz=%i, flat=%i, resolution=%i]\n",
- libgamepad_get_absolute_axis_name(gamepad.absolute_axes[i]),
+ libgamepad_get_absolute_axis_name(NULL, gamepad.absolute_axes[i]),
absinfo->value, absinfo->minimum, absinfo->maximum,
absinfo->fuzz, absinfo->flat, absinfo->resolution);
}
@@ -83,7 +83,7 @@ main(int argc, char *argv[])
assert(gamepad.relative_axes);
assert(gamepad.relative_axes[i] < ELEMSOF(gamepad.relative_axis_map));
assert(gamepad.relative_axis_map[gamepad.relative_axes[i]] == (int16_t)i);
- printf("\t%s\n", libgamepad_get_relative_axis_name(gamepad.relative_axes[i]));
+ printf("\t%s\n", libgamepad_get_relative_axis_name(NULL, gamepad.relative_axes[i]));
}
n = 0;
for (i = 0; i < ELEMSOF(gamepad.relative_axis_map); i++) {