Add gamepad name to joysticks test

This commit is contained in:
Camilla Löwy 2017-10-02 17:32:21 +02:00
parent 6d463d36fa
commit 07cc6e00da

View File

@ -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);