mirror of
https://github.com/gwm17/glfw.git
synced 2025-04-04 08:08:51 -04: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