mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 21:14:35 +00:00
Add gamepad name to joysticks test
This commit is contained in:
parent
6d463d36fa
commit
07cc6e00da
@ -269,7 +269,9 @@ int main(void)
|
|||||||
"LT", "RT",
|
"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);
|
nk_layout_row_dynamic(nk, 30, 2);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user