Mercurial > repos > blastem
comparison nuklear_ui/blastem_nuklear.c @ 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 | 57345f6e18f3 |
comparison
equal
deleted
inserted
replaced
2627:df6dbf229e2f | 2628:32ce6c588bc9 |
---|---|
1883 } | 1883 } |
1884 } | 1884 } |
1885 if (!found_controller) { | 1885 if (!found_controller) { |
1886 nk_layout_row_static(context, context->style.font->height, render_width() - 2 * context->style.font->height, 1); | 1886 nk_layout_row_static(context, context->style.font->height, render_width() - 2 * context->style.font->height, 1); |
1887 nk_label(context, "No controllers detected", NK_TEXT_CENTERED); | 1887 nk_label(context, "No controllers detected", NK_TEXT_CENTERED); |
1888 #ifdef __EMSCRIPTEN__ | |
1889 nk_label(context, "You must press a button on the controller", NK_TEXT_CENTERED); | |
1890 nk_label(context, "before it will be shown here", NK_TEXT_CENTERED); | |
1891 #endif | |
1888 } | 1892 } |
1889 nk_layout_row_static(context, context->style.font->height, (render_width() - 2 * context->style.font->height) / 2, 2); | 1893 nk_layout_row_static(context, context->style.font->height, (render_width() - 2 * context->style.font->height) / 2, 2); |
1890 nk_label(context, "", NK_TEXT_LEFT); | 1894 nk_label(context, "", NK_TEXT_LEFT); |
1891 if (nk_button_label(context, "Back")) { | 1895 if (nk_button_label(context, "Back")) { |
1892 pop_view(); | 1896 pop_view(); |