changeset 2628:32ce6c588bc9

Add some hint test for web since controllers are hidden for anti-fingerprinting reasons
author Michael Pavone <pavone@retrodev.com>
date Sat, 22 Feb 2025 23:36:14 -0800
parents df6dbf229e2f
children 537a2f3b880d
files nuklear_ui/blastem_nuklear.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nuklear_ui/blastem_nuklear.c	Sat Feb 22 23:33:12 2025 -0800
+++ b/nuklear_ui/blastem_nuklear.c	Sat Feb 22 23:36:14 2025 -0800
@@ -1885,6 +1885,10 @@
 		if (!found_controller) {
 			nk_layout_row_static(context, context->style.font->height, render_width() - 2 * context->style.font->height, 1);
 			nk_label(context, "No controllers detected", NK_TEXT_CENTERED);
+#ifdef __EMSCRIPTEN__
+			nk_label(context, "You must press a button on the controller", NK_TEXT_CENTERED);
+			nk_label(context, "before it will be shown here", NK_TEXT_CENTERED);
+#endif
 		}
 		nk_layout_row_static(context, context->style.font->height, (render_width() - 2 * context->style.font->height) / 2, 2);
 		nk_label(context, "", NK_TEXT_LEFT);