Skip to content

Commit

Permalink
Merge pull request #3 from headshot2017/fix-vmu-message-input
Browse files Browse the repository at this point in the history
use Dreamcast's maple input directly instead of SDL events on confirmation dialogs
  • Loading branch information
headshot2017 committed May 12, 2022
2 parents 18151e4 + c1cf001 commit 7bcc841
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/menu.cpp
Expand Up @@ -76,12 +76,16 @@ void message_dialog(Surface* bg, std::string text)

while(true)
{
#ifndef __DREAMCAST__
SDL_Event event;

while (SDL_PollEvent(&event))
{
dialog->event(event);
}
#else
dialog->DCevent();
#endif

bg->draw(0,0);

Expand Down Expand Up @@ -115,12 +119,16 @@ bool confirm_dialog(std::string text)

while(true)
{
#ifndef __DREAMCAST__
SDL_Event event;

while (SDL_PollEvent(&event))
{
dialog->event(event);
}
#else
dialog->DCevent();
#endif

cap_screen->draw(0,0);

Expand Down

0 comments on commit 7bcc841

Please sign in to comment.