Merge pull request #46 from Wenz-jam/master

fix: nvboard is not responding
This commit is contained in:
Zihao Yu 2025-04-20 13:04:54 +08:00 committed by GitHub
commit fd19d9b07a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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:
@ -63,4 +63,5 @@ void read_event() {
break;
case SDL_TEXTINPUT: if (uart_term_get_focus) uart_rx_getchar(ev.text.text[0]); break;
}
}
}