Hide controller options if no controller available.
This commit is contained in:
parent
d8ac065294
commit
fb16e8e8f0
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue