aboutsummaryrefslogtreecommitdiffstats
path: root/test-input.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-input.c')
-rw-r--r--test-input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test-input.c b/test-input.c
index 1fd5c4c..d74e684 100644
--- a/test-input.c
+++ b/test-input.c
@@ -65,12 +65,12 @@ main(int argc, char *argv[])
if (event.sync_event)
printf("[sync] ");
if (event.type == LIBGAMEPAD_BUTTON) {
- printf("%s ", libgamepad_get_button_name(event.code));
+ printf("%s ", libgamepad_get_button_name(NULL, event.code));
} else if (event.type == LIBGAMEPAD_ABSOLUTE_AXIS) {
- printf("%s ", libgamepad_get_absolute_axis_name(event.code));
+ printf("%s ", libgamepad_get_absolute_axis_name(NULL, event.code));
} else {
assert(event.type == LIBGAMEPAD_RELATIVE_AXIS);
- printf("%s ", libgamepad_get_relative_axis_name(event.code));
+ printf("%s ", libgamepad_get_relative_axis_name(NULL, event.code));
}
printf("%lli\n", (long long int)event.value);
}