Added API for simple messagebox, courtesy of Mike Sartain
This commit is contained in:
parent
41cb1847ac
commit
227bb9413f
7 changed files with 856 additions and 0 deletions
|
@ -1204,6 +1204,12 @@ CommonEvent(CommonState * state, SDL_Event * event, int *done)
|
|||
}
|
||||
}
|
||||
break;
|
||||
case SDLK_1:
|
||||
if (event->key.keysym.mod & KMOD_CTRL) {
|
||||
SDL_Window *window = SDL_GetWindowFromID(event->key.windowID);
|
||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_INFORMATION, "Test Message", "You're awesome!", window);
|
||||
}
|
||||
break;
|
||||
case SDLK_ESCAPE:
|
||||
*done = 1;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue