Ajout de la répétition de touches.
This commit is contained in:
parent
11716eaeda
commit
b7b2dccd73
1
view.cpp
1
view.cpp
|
@ -102,6 +102,7 @@ void View::renderScene() {
|
||||||
void View::mainLoop() {
|
void View::mainLoop() {
|
||||||
short continuer = 1;
|
short continuer = 1;
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
|
SDL_EnableKeyRepeat(100,100);
|
||||||
|
|
||||||
while (continuer) {
|
while (continuer) {
|
||||||
while ( SDL_PollEvent(&event) ) {
|
while ( SDL_PollEvent(&event) ) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user