We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8473923 commit e5c8259Copy full SHA for e5c8259
src/messagebox.cpp
@@ -108,16 +108,20 @@ int MessageBox::exec() {
108
bg.blit(s, 0, 0);
109
s.flip();
110
111
- int result = -1;
+ /*int result = -1;
112
while (result < 0) {
113
InputManager::Button button;
114
if (gmenu2x.input.pollButton(&button)
115
&& !buttons[button].empty()) {
116
result = button;
117
}
118
+ if (gmenu2x.input.waitForPressedButton(&button)
119
+ && !buttons[button].empty()) {
120
+ result = button;
121
+ }
122
123
std::this_thread::sleep_for(std::chrono::microseconds(LOOP_DELAY));
- }
124
+ }*/
125
- return result;
126
+ return gmenu2x.input.waitForPressedButton();
127
0 commit comments