mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Merge pull request #76 from joolswills/input_confirmation
added confirmation to "CONFIGURE INPUT". fixes #75
This commit is contained in:
commit
79cce69771
|
@ -184,8 +184,13 @@ GuiMenu::GuiMenu(Window* window) : GuiComponent(window), mMenu(window, "MAIN MEN
|
||||||
});
|
});
|
||||||
|
|
||||||
addEntry("CONFIGURE INPUT", 0x777777FF, true,
|
addEntry("CONFIGURE INPUT", 0x777777FF, true,
|
||||||
[this] {
|
[this] {
|
||||||
mWindow->pushGui(new GuiDetectDevice(mWindow, false, nullptr));
|
Window* window = mWindow;
|
||||||
|
window->pushGui(new GuiMsgBox(window, "ARE YOU SURE YOU WANT TO CONFIGURE INPUT?", "YES",
|
||||||
|
[window] {
|
||||||
|
window->pushGui(new GuiDetectDevice(window, false, nullptr));
|
||||||
|
}, "NO", nullptr)
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
addEntry("QUIT", 0x777777FF, true,
|
addEntry("QUIT", 0x777777FF, true,
|
||||||
|
|
Loading…
Reference in a new issue