Skip to content

Commit e5c8259

Browse files
committed
corrected bug button inputs in log viewer confirmation
1 parent 8473923 commit e5c8259

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/messagebox.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,20 @@ int MessageBox::exec() {
108108
bg.blit(s, 0, 0);
109109
s.flip();
110110

111-
int result = -1;
111+
/*int result = -1;
112112
while (result < 0) {
113113
InputManager::Button button;
114114
if (gmenu2x.input.pollButton(&button)
115115
&& !buttons[button].empty()) {
116116
result = button;
117117
}
118+
if (gmenu2x.input.waitForPressedButton(&button)
119+
&& !buttons[button].empty()) {
120+
result = button;
121+
}
118122
119123
std::this_thread::sleep_for(std::chrono::microseconds(LOOP_DELAY));
120-
}
124+
}*/
121125

122-
return result;
126+
return gmenu2x.input.waitForPressedButton();
123127
}

0 commit comments

Comments
 (0)