Mercurial > hg > dmlib
comparison ppl.c @ 199:623e58df95c1
Enable key repeat in PPL.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 07 Oct 2012 07:02:20 +0300 |
parents | 4568c479541c |
children | 844f38cbff65 |
comparison
equal
deleted
inserted
replaced
198:4568c479541c | 199:623e58df95c1 |
---|---|
681 | 681 |
682 SDL_WM_SetCaption(dmProgDesc, dmProgName); | 682 SDL_WM_SetCaption(dmProgDesc, dmProgName); |
683 | 683 |
684 // okay, main loop here ... "play" module and print out info | 684 // okay, main loop here ... "play" module and print out info |
685 SDL_PauseAudio(0); | 685 SDL_PauseAudio(0); |
686 SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); | |
686 | 687 |
687 int currTick, prevTick = 0, prevRow = -1; | 688 int currTick, prevTick = 0, prevRow = -1; |
688 | 689 |
689 while (!engine.exitFlag && engine.plr->isPlaying) | 690 while (!engine.exitFlag && engine.plr->isPlaying) |
690 { | 691 { |