Hide controller options if no controller available.
This commit is contained in:
parent
d8ac065294
commit
fb16e8e8f0
|
@ -88,6 +88,11 @@ void initOptions(void (*callback)(void))
|
|||
|
||||
showWidgetGroup("options");
|
||||
|
||||
if (!app.joypad)
|
||||
{
|
||||
joypadWidget->visible = 0;
|
||||
}
|
||||
|
||||
app.delegate.logic = logic;
|
||||
app.delegate.draw = draw;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue