added confirmation to "CONFIGURE INPUT". fixes #75

This commit is contained in:
Jools Wills 2016-12-03 02:22:59 +00:00
parent 556462dd09
commit 3ccc380c2b

View file

@ -184,8 +184,13 @@ GuiMenu::GuiMenu(Window* window) : GuiComponent(window), mMenu(window, "MAIN MEN
});
addEntry("CONFIGURE INPUT", 0x777777FF, true,
[this] {
mWindow->pushGui(new GuiDetectDevice(mWindow, false, nullptr));
[this] {
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,