From 07cc6e00da51ade97a240cf8cc1768be4046f1c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 2 Oct 2017 17:32:21 +0200 Subject: [PATCH] Add gamepad name to joysticks test --- tests/joysticks.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/joysticks.c b/tests/joysticks.c index 88489d4e..d039a761 100644 --- a/tests/joysticks.c +++ b/tests/joysticks.c @@ -269,7 +269,9 @@ int main(void) "LT", "RT", }; - nk_label(nk, "Gamepad state", NK_TEXT_LEFT); + nk_labelf(nk, NK_TEXT_LEFT, + "Gamepad state: %s", + glfwGetGamepadName(joysticks[i])); nk_layout_row_dynamic(nk, 30, 2);