Hide controller options if no controller available.

This commit is contained in:
Steve 2018-02-20 12:16:54 +00:00
parent d8ac065294
commit fb16e8e8f0
1 changed files with 5 additions and 0 deletions

View File

@ -87,6 +87,11 @@ void initOptions(void (*callback)(void))
backWidget->action = back; backWidget->action = back;
showWidgetGroup("options"); showWidgetGroup("options");
if (!app.joypad)
{
joypadWidget->visible = 0;
}
app.delegate.logic = logic; app.delegate.logic = logic;
app.delegate.draw = draw; app.delegate.draw = draw;