no message

This commit is contained in:
BADIM-PC\Vadim 2018-02-12 22:08:33 +03:00
parent d3c1276271
commit 1110fa7991
1 changed files with 18 additions and 33 deletions

View File

@ -91,29 +91,23 @@ static void onNo(Dialog* dlg)
hideDialog(); hideDialog();
} }
// static void processKeydown(Dialog* dlg, SDL_Keysym* keysum) static void processKeyboard(Dialog* dlg)
// { {
// SDL_Scancode scancode = keysum->scancode; if(isKeyBeenPressed(tic_key_left))
{
// switch(scancode) dlg->focus = (dlg->focus-1) % 2;
// { playSystemSfx(2);
// case SDL_SCANCODE_LEFT: }
// dlg->focus = (dlg->focus-1) % 2; else if(isKeyBeenPressed(tic_key_right) || isKeyBeenPressed(tic_key_tab))
// playSystemSfx(2); {
// break; dlg->focus = (dlg->focus+1) % 2;
// case SDL_SCANCODE_RIGHT: playSystemSfx(2);
// case SDL_SCANCODE_TAB: }
// dlg->focus = (dlg->focus+1) % 2; else if(isKeyBeenPressed(tic_key_return) || isKeyBeenPressed(tic_key_space))
// playSystemSfx(2); {
// break; dlg->focus == 0 ? onYes(dlg) : onNo(dlg);
// case SDL_SCANCODE_RETURN: }
// case SDL_SCANCODE_SPACE: }
// dlg->focus == 0 ? onYes(dlg) : onNo(dlg);
// break;
// default:
// break;
// }
// }
static void drawDialog(Dialog* dlg) static void drawDialog(Dialog* dlg)
{ {
@ -191,16 +185,7 @@ static void drawDialog(Dialog* dlg)
static void tick(Dialog* dlg) static void tick(Dialog* dlg)
{ {
// SDL_Event* event = NULL; processKeyboard(dlg);
// while ((event = pollEvent()))
// {
// switch(event->type)
// {
// case SDL_KEYDOWN:
// processKeydown(dlg, &event->key.keysym);
// break;
// }
// }
if(!dlg->init) if(!dlg->init)
{ {