fix: nvboard is not responding

This commit is contained in:
Wenz-jam 2025-04-12 15:57:41 +08:00
parent f38aa2ac97
commit bdaebcbe8e
1 changed files with 19 additions and 18 deletions

View File

@ -43,7 +43,7 @@ static void mouseup_handler(const SDL_Event &ev) {
void read_event() {
SDL_Event ev;
SDL_PollEvent(&ev);
while (SDL_PollEvent(&ev)) {
switch (ev.type) {
case SDL_QUIT: exit(0);
case SDL_WINDOWEVENT:
@ -64,3 +64,4 @@ void read_event() {
case SDL_TEXTINPUT: if (uart_term_get_focus) uart_rx_getchar(ev.text.text[0]); break;
}
}
}