Ajout de la répétition de touches.

This commit is contained in:
Yoann 2011-11-28 19:33:49 +01:00
parent 11716eaeda
commit b7b2dccd73

View File

@ -102,6 +102,7 @@ void View::renderScene() {
void View::mainLoop() {
short continuer = 1;
SDL_Event event;
SDL_EnableKeyRepeat(100,100);
while (continuer) {
while ( SDL_PollEvent(&event) ) {